Hi all,
I have configured my Play app to run under a context path, e.g. /myapp, so the url will be something like
http://app.host.com:9000/myapp. I have added the context path to application.conf's play.http.context parameter, and all works fine. Play will recognize the context path set and render pages accordingly.
My questions is, how do I get the context path both in code or in template? Essentially, the equivalent of servlet's request.getContextPath().
What I am trying to do is, manually construct a URL in the template, e.g. to post a form. I understand I can (and should) use Play's built-in reverse routing for it, but I have a special case where I need to manually construct the URL.
Thanks
Patrick