Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why index.html  RSS feed

 
Saurabh Naik
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
I am using tomcat for my application in jsp/servlet.
i have one file named Enter.jsp. after starting the server and programme it will automatically call index.html. but suppose while starting I want to make call direct to my file i.e Enter.jsp. so how to call it directly without typing name in browser.
Is their any way to call user generated files directly without calling index.html
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can configure it to be whatever you want.

Look up the <welcome-file> entry in your deployment descriptor (web.xml).
There is a link to the servlet spec in my signature.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the welcome file list in web.xml to use a welcome file of your choice.

 
Bk Jacky
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Replace



with

<welcome-file-list> <welcome-file>Enter.jsp</welcome-file></welcome-file-list>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!