Set up a servlet mapping in web.xml. As follows:
<servlet-mapping>
<servlet-name>
NameHere
</servlet-name>
<url-pattern>
/example/NameToBeCalled
</url-pattern>
</servlet-mapping>
here all requests to localhost/example/NameToBeCalled
would be sent to the servlet defined in web.xml named NameHere.
This has been discussed in the past on this list. It would
cut down on traffic and save you time as well if you check
the archives before posting messages because most topics have
at least been mentioned on the list before.
---
Michael Wentzel
Software Developer
<A HREF="http://www.aswethink.com">Software As We Think</A>
<A HREF="mailto:[EMAIL PROTECTED]">Michael Wentzel</A>
> -----Original Message-----
> From: Aidee Angulo P. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:22 PM
> To: Tomcat Users
> Subject: Servlets under /webapp/app_name/java ?
> Importance: High
>
>
> Hi All,
>
> What I should do for configure servlets directory
> other than /servlets for a new application?
>
> with regards,
>
> Aideé
>
> P.D. Please tell me how I should do in web.xml and server.xml.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]