Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Editing The Tomcat Default page Signup · Login
Author Thread
Editing The Tomcat Default page
Posted in tutorial: Installing, Configuring, & Running Tomcat 6.0 Servlet Container on Microsoft Windows, and Developing & Running your first JSP Page
·  mgrajeev
User
Joined: 25 Oct 2004
Total Posts: 1

Editing The Tomcat Default page

Posted: 25 Oct 2004
Hello friend,

I just want to know is there any way to edit the default tomcat directory listing pageI just want to delete the path name (directory path) which will be showed on the top of the default directory listing page
Hope u will send me the solution for this paroblem very soon

with warm regards
Rajeev
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 595
Re: Editing The Tomcat Default page
Posted: 25 Oct 2007
If by "editing the tomcat default page" you mean setting the JSP page (or Servlet) that will be displayed be default if a user doesn't enter the page name but just the folder forward slash like http://www.stardeveloper.com/ instead of http://www.stardeveloper.com/yourwelcomefile.jsp. Then add these tags to your web application's web.xml file:


<welcome-file-list>
<welcome-file>yourwelcomefile.jsp</welcome-file>
</welcome-file-list>


Then everytime a user requests http://www.stardeveloper.com/, Tomcat will delegate the request to your proper welcome file, http://www.stardeveloper.com/yourwelcomefile.jsp.

Faisal Khan.
Stardeveloper.com
Read Blog | Follow on Facebook, Twitter
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.