This content has been marked as final.
Show 1 reply
-
1. Re: web.xml
safx Jul 20, 2003 10:02 AM (in response to mafti)I'm assuming that you want to map all requests to a central controlling servlet. In your web.xml file, you need to specify <uri-pattern> for the servlet, such as...
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/WebController/*</url-pattern>
</servlet-mapping>
Make sure all requests are preceded with the uri-pattern value, such as action="/WebController/userProfile". When the web container receives this request, the container should send the request to the servlet, after that you can prepare the request and forward the your JSP view.
SAF