How to render a simple HTML page in Playframework -


i have added simple login page in directory

c:\play-2.2.2\samples\java\forms\app\views\ecal_login\login.html

the same page when moved directory works fine

c:\play-2.2.2\samples\java\forms\app\views

i want render same page views\ecal_login directory. how can that?

i using function

 public static result login()    {         return ok(login.render());    } 

note:i have page login.html , not login.scala.html record!

as estmatic commented should

ok(views.html.ecal_login.login.render()) 

here you'll find several other samples working views in subpackages:

https://stackoverflow.com/a/14625097/1066240


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -