File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes server takes default page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "server takes default page" Watch "server takes default page" New topic

server takes default page

l suresh

Joined: Mar 09, 2006
Posts: 15
hi all,

i downloaded a web application of MVC1 has a servlet controller.
it runs in tomcat server.when i click the folder where the jsp files are present then it takes the one jsp file as a default web.xml also there is no welcome file tag or the context path want to set another jsp file as a default page where it is present in the same controller also there is no jsp page set as a default page.

pls reply for this problem or provide me any links.
thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63843

"pls" is not a word. Please use real words when posting.

[Asking smart questions] [About Bear] [Books by Bear]
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Tomcat has some default settings for welcome pages, in conf/web.xml

[My Blog]
All roads lead to JavaRanch
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

For web.xml, look in the Servlet Specification, chapter 13, "Deployment Descriptor."

Note: Individual webapps can override specific settings in a custom WEB-INF/web.xml file.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Kamesh Rao
Ranch Hand

Joined: Dec 24, 2006
Posts: 35
If the webapplication framework is built on struts then the default uri is controlled in the struts.xml. This is done by using an atrribute called unknown="true" for one of the action mapping. You can change this to another action mapping.
I agree. Here's the link:
subject: server takes default page
It's not a secret anymore!