I have a relatively simple question regarding tomcat and URL Mappings...
I have a webapp that I have developed in a folder called 'myFolder' for
example. JBuilder then packs my webapp into myFolder.war when it's
built.
When I deploy myFolder.war to tomcat, it is unpacked into the folder
'myFolder' in the webapps directory as expected.
So I can now browse to which works
fine.
But I wanted to be able to get to my login.jsp page by just pointing
to
so I placed a redirecting page in the root webapp
folder
which redirected to the file login.jsp in the folder myFolder, but
then of
course I still have the 'myFolder' displayed in the url.
So I guess I have two questions:
1. how do I edit the web.xml (?) so that goes
directly to
my webapp in 'myFolder' without displaying 'myFolder' in the URL ?
2. how do i set it up so that login.jsp is the initial page displayed
?
I'm running Tomcat 5.0.19 standalone (eg. no IIS || apache etc) on
win2000
server
I have a webapp that I have developed in a folder called 'myFolder' for
example. JBuilder then packs my webapp into myFolder.war when it's
built.
When I deploy myFolder.war to tomcat, it is unpacked into the folder
'myFolder' in the webapps directory as expected.
So I can now browse to which works
fine.
But I wanted to be able to get to my login.jsp page by just pointing
to
so I placed a redirecting page in the root webapp
folder
which redirected to the file login.jsp in the folder myFolder, but
then of
course I still have the 'myFolder' displayed in the url.
So I guess I have two questions:
1. how do I edit the web.xml (?) so that goes
directly to
my webapp in 'myFolder' without displaying 'myFolder' in the URL ?
2. how do i set it up so that login.jsp is the initial page displayed
?
I'm running Tomcat 5.0.19 standalone (eg. no IIS || apache etc) on
win2000
server