Click to See Complete Forum and Search --> : Query about web.xml file


ritu138
03-30-2007, 01:55 AM
Hi All,

Following is the problem I am facing.
My application is launched from the browser like this:
http://localhost/welcome
and the welcome page comes.

When we manually enter the following:
http://localhost/Welcome
http://localhost/welcome/
then also the welcome page comes.

However, when we manually enter
http://localhost/Welcome/
I get a "Page cannot be displayed" error.

On close analysis of web.xml file, it contains the following:
<servlet-mapping>
<servlet-name>MainMenu</servlet-name>
<url-pattern>/welcome/</url-pattern>
</servlet-mapping>

I tried making modifications in the above and also tried to include a new <servlet-mapping> definition but it does not work.

Is there any way where I can make the url
http://localhost/Welcome/ work?

Any help will be highly appreciated as I am pretty new to this concept.
Thank you!