aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Default page for some path" Watch "Default page for some path" New topic
Author

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
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
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.

Bill
[ October 09, 2007: Message edited by: William Brogden ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Default page for some path