Thursday, 29 August 2013

Is it possible to get the values of the method parameters from the Context() in Play! 2?

Is it possible to get the values of the method parameters from the
Context() in Play! 2?

Using Play!Framework 2.1.3, is there a way to get the value used in the
URL from the matched routes ?
An exemple beeing more precise :
routes :
GET /users/:name/:page controllers.Users.list
and this url :
/users/ben/1
Is it possible, from the Context().current(), to get the value ben and 1
without having to parse the Context().current().path() ?
Thanks for your help :)

No comments:

Post a Comment