wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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/admin-menu.do .. 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: 12809
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 admin-menu.do 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: http://aspose.com/file-tools
subject: Default page for some path