tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Where do I place a servlet class
Date Fri, 20 Aug 2004 16:29:41 GMT


>I added the servlet mapping entry but it's still not working.
>I have the class file in /dev_new/WEB-INF/classes/umJavaLib/.  Does the
>class file need to go into a special directory of anything?
>	<servlet>
>                <servlet-name>servUploadMedia</servlet-name>
>                <load-on-startup>1</load-on-startup>
>        </servlet>
>	 <servlet-mapping>
>                <servlet-name>servUploadMedia</servlet-name>
>                <url-
>        </servlet-mapping>

First try to get it to work in tomcat-standalone.  It's the KISS

Do you realize what the above url-pattern means?  With it, you can
access your servlet at
edia.  A more typical url-pattern would just be
<url-pattern>/uploadMedia</url-pattern, and then you'd access your
servlet at http://yourhost:yourport/yourwebapp/uploadMedia.

If you're unclear on url-pattern and how it works, check out the Servlet
Specification itself for details and examples.

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:
For additional commands, e-mail:

View raw message