• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Page question

 
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic