• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Page question  RSS feed

 
Dinesh Tahiliani
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranchers,

Need your help.
1.I am having one jsp page index.jsp.
Whenver anyone types www.palace.com. index.jsp page opens.
Instead of index.jps i want to opne palace.jsp whenver user enters wwww.palace.com. I have deleted the index.jsp
Where should i write the code to display palace.jsp and steps needs to be taken.


2.What factors should be consider while checking the performance of any webpage.

Please try to answer my questions and help me understand.

 
ashu Suri
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change the entry in web.xml.

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>upload.jsp</welcome-file>
</welcome-file-list>


and change the <welcome-file>palace.jsp</welcome-file> in web.xml.
This should solve your problem.
 
Dinesh Tahiliani
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ashu,

Thanks for your reply

But what is this <welcome-file> does this gets invoke whenever we start the Tomcat

Can you please suggest some good books where i can find such things for JSP ad Servlets and Tomcat. I want to clear my concepts.

[ November 24, 2008: Message edited by: Dinesh Tahiliani ]
[ November 24, 2008: Message edited by: Dinesh Tahiliani ]
 
ashu Suri
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<welcome-file> is the tag that tells the app server which file to load if the application name is given.
place your welcome file palace.jsp in this tag and it should run well
for books on jsp try advanced jsp in here
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!