I am new to Java and I am using the play 2.0 platform for the project and I was wondering how to use the reverse routing function. We have the following:
In the routes file
GET / controllers.Application.index()
GET /myapp/storage controllers.myapp.AnotherController.index()
So, to use reverse routing:
controllers.routes.ref.Application.index()
but what about AnotherController?
If I use controllers.routes.ref.AnotherController.index()in the test, the playback environment will cause an error "cannot find character".
Thank.
source
share