You could write a filter to do this.  So if the filter see's the shorter
url it can redirect/forward to the longer url.

Subir

-----Original Message-----
From: David Wall [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 11:26 AM
To: Tomcat Users List
Subject: Tomcat 4.1 and auto-redirect/URL rewrite


I have a page in a tomcat 4.1 webapp that has a rather lengthy path
name, 
but I'd like to be able to email a much shorter link to avoid long links

being broken across lines by some older email clients.

With Apache HTTPD's rewrite module, this could be accomplished.  Is
there 
something similar in TC?  I'd like to map something like:

https://www.myhost.com/app/pickup?c=12345678901234567890

to

https://www.myhost.com/app/custom/customerName/applicationName/welcome.j
sp?c=12345678901234567890

I know I could create a servlet that does an auto-redirect, but I'm
looking 
to see if TC has anything that more directly will rewrite the URLs.

Thanks,
David 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to