tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JTBld...@aol.com
Subject Re: Accessing Servlets In Packages
Date Thu, 16 Nov 2000 16:58:37 GMT
Don't know why but that does not seem to work, either.  I am happy to have a 
way (changing slashes to dots - see previous) and will move on to other 
porting issues like load on startup.
Thanks, JT

In a message dated 11/16/2000 1:03:07 PM Mountain Standard Time, 
Craig.McClanahan@eng.sun.com writes:

> > I would like to (but CANNOT) access it with:
> >
> >  http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass
> >

> Why can't you use a servlet definition and mapping like this:
>     <servlet>
>         <servlet-name>My Servlet</servlet-name>
>         <servlet-class>testpackage.SomePackageClass</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>My Servlet</servlet-name>
>         <url-pattern>/servlet/testpackage/SomePackageClass</url-pattern>
>     </servlet-mapping>
> which would support your desired URL?
> 
> Craig McClanahan

Mime
View raw message