Can you perhaps write a little servlet that forwards a request to a new
address (a string defined in the web.xml) and then map the servlet to the
url pattern you want.
i.e.
url pattern for servlet
/COLANgamma/*
then the servlet takes the request string (whatever is after the url pattern
for the servlet)
"index.html"
and adds it to the url-prefix string which can be defined in the web.xml
"/opencms/opencms/COLANgamma/"
so it ends up redirecting to
"/opencms/opencms/opencms/COLANgamma/" + "index.html"
Hamish
> -----Original Message-----
> From: Alexander Schmidt [mailto:aschmidt@i5.informatik.rwth-aachen.de]
> Sent: Sunday, August 25, 2002 3:05 PM
> To: Tomcat Users List
> Subject: Redirects by TOMCAT in server.xml?
>
>
> Hi!
> I will explain my problem better!
> I have an application opencms. With this application you can
> create and
> manage HTML-Sites.
> The program uses Tomcat 4.0! To let me show the sites, i have
> to type in the
> browser
> the URL
> "http://localhost:8080/opencms/opencms/COLANgamma/index.html" , but
> it is too long for me.
> So i want to redirect it. I only want to type in the URL
> "http://localhost:8080/COLANgamma/index.html". I want to do
> the redirection
> with TOMCAT 4.0 in that way, that i configure the server.xml.
> But I don´t find any solution. I know that there is a possibility with
> Apache, but we don´t use it.
>
> 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>
>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|