Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Welcome file in tomcat

843841Jan 6 2005 — edited Jan 7 2005
Hi everyone, this may seem like a trivial question. I want to make one of my jsp pages the default welcome page when a user malforms a url.

For example I looked at tomcats defaults index.jsp page and one of my questions is how do I set the location of where the jsp resides. I have seen the <welcome-file-list> tag however I need it to point to my jsp which is in a folder named Main under the webapps folder .

As of now I don't know where tomcat specifies the location to look for its index.jsp

A related problem is that when someone clicks
http:\\localhost:8080\Main\welcome.jsp they are forwarded to my welcome page which is fine however if they type in http:\\localhost:8080\Main they can see my all of my jsp and other files which reside in my directory. Not good.

will the <welcome-file-list> tag work here? if so I also need to specify the webapp folder where it is.

Thanks in advance
Tas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2005
Added on Jan 6 2005
2 comments
356 views