This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do we invoke servlet ?

 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to invoke servlet of chapter1 in HFSJ if deployment is defined as follows?I mean what will be the URL ?

Thanks
Veena

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>Chapter1Servlet</servlet-name>
<servlet-class>Ch1Servlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

</web-app>
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In old version of tomcat the Invoker servlet is on so you can refer the srevlet with the URI /servlet/ServletName.

But I think in latest version of tomcat the default invoker is not enabled. You have to set this mapping manually in tomcat configuration or web.xml.

I think it is container specific feature.

Thanks
 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember now.Thanks Narendra.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic