File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Changing the default jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Changing the default jsp page" Watch "Changing the default jsp page" New topic

Changing the default jsp page

David McCombs
Ranch Hand

Joined: Oct 17, 2006
Posts: 212
I am trying to change the default page when is sent from a browser. The file I want it to point to is under TOMCAT HOME/webapps/welcome/index.jsp

In the server web.xml file under conf, I changed the <welcome-file> entry for jsp to /welcome/index.jsp and didn't work, and tried welcome/index.jsp and also failed. Is there another line I need to edit? Thanks

"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Change your app's name to ROOT and replace the current ROOT app (which shipped with Tomcat) with it.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Changing the default jsp page
It's not a secret anymore!