It sounds great, I will just add tuckey filter in root web app and do whatever redirection needed there. thanks a lot :)
On Sun, Jul 4, 2010 at 8:29 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: daniel polonsky [mailto:danpolon...@gmail.com] > > Subject: Re: Rewrite context part in URL > > > > As far as I understand tuckey can't help me in rewriting the > > application directory (context), but rather the rest of url > > following the context. > > Not my understanding. You'll need to have the filter in the ROOT webapp, > since that's where Tomcat will send requests that aren't satisfied by an > explicit request. At that point, the URL rewrite filter can modify the > request any way you want, and either forward or redirect to the proper URL. > (I would think redirect in your case, so the proper URL will be used in > subsequent requests by the client. If you choose to use forward, you'll > need to enable the cross-context attribute for ROOT in its <Context> > element.) > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >