aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "server takes default page" Watch "server takes default page" New topic
Author

server takes default page

l suresh
Greenhorn

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

i downloaded a web application of MVC1 model.it 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 page.in web.xml also there is no welcome file tag or the context path set.it want to set another jsp file as a default page where it is present in the same folder.in 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
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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: 1321

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.


Saifuddin..
[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: http://aspose.com/file-tools
 
subject: server takes default page