In web.xml, I think you can configure the 
<serlvet-mapping>
<url-pattern>/url-that-you-want</url-pattern>
</servlet-mapping>

to get a url mapped to a specific servlet.  Look up the documentation
on how stuff in web.xml works, and you might find a more complete answer then 
I can give. hope that helps

--Monte Glenn Gardner


On Thu, 3 Oct 2002, Don Fike wrote:

> 
> I have packaged a group of servlets into a package.
> Now to access my servlet I am using an URL similar to
> the one below;
> 
> http://mysite:8080/example/servlet/path.to.my.package.myServlet
> 
> My servlets are located in a directory structure like;
> 
> ... tomcat/webapps/example/WEB-INF/classes/path/to/my/package/myServlet
> 
> moving them to where they were [and prolly breaking a path->package rule]
> doesn't work, i.e placing them here fails with errors;
> 
> ... tomcat/webapps/example/WEB-INF/classes/myServlet 
> 
> Before I packaged my servlets I used an URL similar to this one;
> 
> http://mysite:8080/example/servlet/myServlet
> 
> I would prefer the shorter version of the URL.  Do I have
> this app and package configured wrong for tomcat?  
> Is it possible to still use packages but not have to 
> use an URL that includes the entire package path info 
> with the servlet name?
> 
> Thanks,
> 
> Don
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to