File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Changing the default jsp page" Watch "Changing the default jsp page" New topic
Author

Changing the default jsp page

David McCombs
Ranch Hand

Joined: Oct 17, 2006
Posts: 212
I am trying to change the default page when www.mywebsite.com 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
Sheriff

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: http://aspose.com/file-tools
 
subject: Changing the default jsp page
 
Similar Threads
Tomcat as Public Web Server
how we are able to use URL www.javaranch.com/books.jsp
Got Tomcat/Apache merged, but...
web.xml configuration question
how to set html page as a welcome page in netbeans