Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: running a servlet .class file

Shapira, Yoav

2004-01-16



Howdy,
>actually, my web.xml file may be cack, this is it in its entirety:
>
>
><web-app>
>     <servlet>
>           <servlet-name>
>                WinGalagaHST
>           </servlet-name>
>           <servlet-class>
>                WinGalagaHST
>           </servlet-class>
>     </servlet>
></web-app>

You also need a servlet mapping, e.g.
<servlet-mapping>
<servlet-name>WinGalagaHST</servlet-name>
<url-pattern>/WinGalaga</url-pattern>
</servlet-mapping>

Then going to /WinGalaga under your webapp will access the servlet.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.