I\'m using Play 2.1 and I\'m having some odd problems.
I have a subpackage messages
in the controllers
package with a class i18n.java
For Play 2.4.6 Java users:
Let's say your controller (Application) and action (logout) is com.stackoverflow.play.Application.logout()
.
To use it in your template (*.scala.html
), you do @com.stackoverflow.play.routes.Application.logout
(e.g., ,
).
Read the bottom part of this link: https://playframework.com/documentation/2.4.x/JavaRouting