How can I set the URI for my app?
1. The simple case. If you want:
Then you can see it in the WEB-INF/web.xml in your .war:
url-pattern of /* means that your app will bet all URIs below it - ie
2. You don't want the app name in the path.
In this case, you need to make a context file for your app.
Which lives in <jetty-home>/contexts/myapp.xml
If you send contextPath to /
Then your apps URL will be
(assuming you also send url-pattern to /*)
This means your app will handle app URIs. So you'd better be ready for it.