• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic