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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -