Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Default Page In docBase

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
By default Tomcat looks in docBase for a file called "index.html". Is there a way to change the default filename? In other words when I enter the URL: I don't want it to look for index.html but for "startpage.html". I am running Tomcat stand alone. I guess it would be the equivalent of "DirectoryIndex" in Apache (httpd.conf). Any ideas?

Thanks,
Greg
 
In your application's web.xml file add a <welcome-file-list> element

Get Servlet 2.3 specification from Sun's website and look a Deployment Descriptor chapter SRV.13

pfist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top