Hi, Roy,

>> Do you have a <welcome-file-list> in your web.xml ?

>No I don't have that in my web.xml

I am really sorry, I hadn't look carefully enough at your first message.

Here is a summary of different mapping and their effect :

        If you map :            an you request :                you get :

        /myfile.html            /myfile.html            servlet HOME
        /mydirectory            /mydirectory            servlet HOME
        /mydirectory/           /mydirectory/mydoc      /mydirectory/mydoc
        /mydirectory/*          /mydirectory/           servlet HOME
        /mydirectory/*          /mydirectory/mydoc      servlet HOME (with extra path 
available)

Note that if you forget the leading slash, no mapping will occur.

So, if you map :

        <url-pattern>/</url-pattern>

you always get the HOME servlet and when you request :

        http://localhost:8080/search.html


you are just making "search.html" available to the HOME servlet.

You can check this in the HOME servlet with :

        String extraPath = request.getPathInfo();

Pierre-Yves

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to