Most of the answer is in SRV.4.4. Assume, for example,
The web-app is mapped to /myappIn the web-app, there's a servlet called FooServlet mapped to /fooThe browser requests http://www.myserver.com/myapp/foo/bar.html?param=valueIn that case, FooServlet will be invoked with the following request attributes:
request.getContentPath() will return "/myapp"request.getServletPath() will return "/foo"request.getPathInfo() will return "/bar.html"request.getQueryString() will return "param=value"request.getParameter("param") will return "value"request.getRequestURI() will return either "/myapp/foo/bar.html" or "http://www.myserver.com/myapp/foo/bar.html", depending on the precise format of the browser request.See the spec quoted above for more details. Does this help?
- Peter
[ April 16, 2002: Message edited by: Peter den Haan ]