1 Reply Latest reply on Jul 20, 2003 10:02 AM by safx

    web.xml

    mafti Newbie

      Hi there,

      my context is '/'

      i want everything mapped to a servlet, except
      my jsp's.

      how do i do this?

        • 1. Re: web.xml
          safx Newbie

          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