See this topic in Google Groups for a description of what you are asking.
http://groups.google.com/group/play-framework/browse_thread/thread/b4783c821fd29898?pli=1
In essence, what he says is.
In your application.conf file, you set a property like
war.context=/MyAppName
Then, in the routes file, you set it to include your WAR context as follows.
# Set context name %{ ctx = play.configuration.getProperty('war.context', '') }%
Thus, you can see that no matter what you place in your war.context, you can put in your routes to choose the right path.
source share