• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Jsp and Web.xml

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to configur web.xml for using JSP.
What we can write in the web.xml file.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There is no need for any entry in the web.xml for deployment of JSPs.. unless you are giving a different name i.e. accessing the JSP with a different URL. In the latter case, the configuration would be something like

<servlet>
<servlet-name>MyJSP</servlet-name>
</jsp-file>/MyOriginalCodedJSP.jsp</jsp-file>
</servlet>

</servlet-mapping>
<servlet-name>MyJSP</servlet-name>
<url-pattern>/AliasJSP.do</url-pattern>
</servlet-mapping>
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by hitu solanki:
What we can write in the web.xml file.



For a complete list of what you can use the web.xml for I recommend you to check the servlet specification. You can download it from java.sun.com download page.
The web.xml is described in the chapter 13 of the servlet 2.4 spec.
HTH
Juanjo Bazan
reply
    Bookmark Topic Watch Topic
  • New Topic