• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server takes default page

 
l suresh
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pls" is not a word. Please use real words when posting.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat has some default settings for welcome pages, in conf/web.xml
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kamesh Rao
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic