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:
Comments
Post a Comment