Search code examples
mavenjettytapestry

Getting Tapestry to respond on root URL


I've gone through Tapestry's documentation and am unable to figure out this one.

Tapestry sets up URLs as myurl/myappname?message=hello. However, I want to serve requests as myurl?message=hello.

My client expects to pass parameters on the root URL.

How do I configure Tapestry to do so? I don't want my Web Application name to be visible in the URL.

I can see Tapestry intercept requests on myurl, but it responds with Error 404.

Please help and thanks in advance! I'm stuck.


Solution

  • This is a function of your servlet container, not Tapestry. For Tomcat, see this question: How to set the context path of a web application in Tomcat 7.0