Welcome file in tomcat
843841Jan 6 2005 — edited Jan 7 2005Hi 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