tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Schöffel <stephan.schoef...@gmx.net>
Subject Re: Multiple paths to one application
Date Thu, 02 Nov 2006 08:56:05 GMT
if you map them to one app in your web.xml you can have different paths 
link to one app.

like:

<servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>my.Servlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/path1/servlet1</url-pattern>
    </servlet-mapping>
<servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/path2/servlet2</url-pattern>
    </servlet-mapping>

both links would map to MyServlet ie my.Servlet.class

Peter Neu wrote:

>Hello,
>
>is here a way to have multiple paths configured for one apps?
>Like :
>
>Localhost/path1/servlet1
>
>Localhost/path2/servlet2
>
>
>Cheers,
>Pete
>
>
>
>
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message