why can't you just use javascript? -----Original Message----- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Sonntag, 25. August 2002 15:24 To: 'Tomcat Users List' Subject: RE: Redirects by TOMCAT in server.xml?
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:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
