This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Default page for some path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Default page for some path" Watch "Default page for some path" New topic

Default page for some path

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
there is some path exist on my website say .. http://localhost:8080/project/admin/ .. i want that when user enter this url a default page should open which is one th e following path .. http://localhost:8080/project/admin/ .. what web.xml entry should i have to make?

my all pages under admin folder are secured using TOMCAT BASIC authentication, will adding a default page in that way will break the security?

One more thing, I have already defined the index.jsp page for welcome file which is for all users.

The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
If you define a new welcome-file-list in the web.xml for your project application, it will replace the list in the default web.xml. Unless you have files in multiple places in the app, that should do it.

[ October 09, 2007: Message edited by: William Brogden ]
I agree. Here's the link:
subject: Default page for some path
Similar Threads
multiple URL mapping for one web app
How to run a application
Running JBuilder8 with Jakarta Tomcat: can't view the Tomcat Admin application
Anyone tried Tomcat 4.1.7? - bedding down prob