tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Øyvind Vestavik <Oyvind.Vesta...@idi.ntnu.no>
Subject Re: Fw: Redirect with TOMCAT4.01?
Date Thu, 22 Aug 2002 10:20:46 GMT

Have you tried modifying web.xml?

I haven't tried it, but how about:
(I don't know if this is legal though..)

<web-app>
	<servlet>
		<servlet-name>myservlet</servlet-name>
		<servlet-class>com.servlets.myServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>myservlet</servlet-name>
		<url-pattern>url1</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>myservlet</servlet-name>
		<url-pattern>url2</url-pattern>
	</servlet-mapping>
</web-app>

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
oyvindve@idi.ntnu.no
41422911

On Thu, 22 Aug 2002, Alexander Schmidt wrote:

>
> ----- Original Message -----
> From: Alexander Schmidt
> To: Tomcat Users List
> Sent: Thursday, August 22, 2002 11:29 AM
> Subject: Redirect with TOMCAT4.01?
>
>
> Hello!
> I want to redirect an URL for example /opencms/opencms/colangamma to /colangamma/. So
when I type in colangamma he
> redirect it to /opencms/opencms/colangamma. I want this to do with TOMCAT 4.0.1. Is there
any possibility?
>
> Thanks
>      A.Schmidt
>


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


Mime
View raw message