Is any type to produce subdirectories dinamicly in playframework?, I believed inside a commom interceptor like spring, but.. how do i get it done in play??, thank you for any help

example.com/event1

example.com/event2

example.com/event3

Easiest way, I believe, is by using the routes file. Documentation here ought to be self-explanatory:

http://world wide web.playframework.org/documentation/1.2.2/routes

(see e.g. http://world wide web.playframework.org/documentation/1.2.2/routes#syntax)

You should use the routes file, but remember that the "title" from the folder should be a vital that enables you to identify the item. Usually "key" will associated with an entity, and for the reason that situation Play supplies a Lengthy id as key the industry better option. Next key you can include some string for Search engine optimization-usability reasons.

So that your routes could be something similar to:

example.com/1/event1

example.com/2/event2

example.com/3/event3

(or else)

example.com/event/1

example.com/event/2

example.com/event/3

utilizing a routes file like:

GET //title      MyController.getFolder

or

GET /event/       MyController.getFolder

You will find some questions around here (SO) regarding how to add the additional text towards the path.