• 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

Welcome file list not working

 
Greenhorn
Posts: 17
Tomcat Server Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to use my file "welcome.jsp" instead of the usual "index.jsp" in TOMCAT 7.0. But it is not working please help.Here are the files:

welcome.jsp


next.html



Here is the web.xml


index.jsp

 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you having a servlet mapping for a JSP? Are you trying to implement the Front-controller pattern?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firstly:
really? You want your servlet to be called for all request? Even images and stylesheets?

Secondly, your entry in the welcome list is not a url, it's a servlet name. Do you think that's valid?
 
prerit datta
Greenhorn
Posts: 17
Tomcat Server Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Firstly:
really? You want your servlet to be called for all request? Even images and stylesheets?

Secondly, your entry in the welcome list is not a url, it's a servlet name. Do you think that's valid?



I was just trying the concept of welcome file list. I just want to know how can I display "welcome.jsp" page as my welcome page instead of the usual index.jsp. Can you tell how will I write web.xml for this?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like you have listed the index.jsp, list the welcome.jsp in the welcome file listing instead of the servlet name.
 
prerit datta
Greenhorn
Posts: 17
Tomcat Server Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jaikiran Pai wrote:Like you have listed the index.jsp, list the welcome.jsp in the welcome file listing instead of the servlet name.



Sorry I didn't get you....
 
reply
    Bookmark Topic Watch Topic
  • New Topic