tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject RE: possibly off topic: workers2.properties question
Date Tue, 17 Jun 2003 18:04:08 GMT
One of the ways you could accomplish the
/app/servlet/* mapping is to map each of your servlets
in the app's web.xml file with a:

    <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/servlet/MyServlet</url-pattern>
    </servlet-mapping>

for each servlet in your app.  You would also have to
define something like:

<servlet>
  <servlet-name>MyServlet</servlet-name>
  <display-name>MyServlet</display-name>
  <servlet-class>org.someorg.app.Name</servlet-class>
</servlet>

This would map the class Name in package
org.someorg.app to MyServlet, and then the
servlet-mapping would map the MyServlet name to a uri.

According to the documentation, you may have more than
one servlet-mapping per servlet-name, but then the
Apache-Tomcat mapping might get a bit cumbersome.

Then the people who build the pages will have to refer
to the servlet with the proper uri . . . .

HTH

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message