Re: Tomcat 301 redirect

2009-08-25 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 11:26 AM, Murtuza wrote: > > I only want to re-link old uri to home page and any request which does not > exist to error page. I added > >         >                404 >                /404.jsp >         > > to web.xml and used below code which I found after google but > req

Re: Tomcat 301 redirect

2009-08-25 Thread Murtuza
nd user to new location response.setHeader("Location", newLocation); } %> -- View this message in context: http://www.nabble.com/Tomcat-301-redirect-tp25139277p25139686.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Tomcat 301 redirect

2009-08-25 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 10:59 AM, Murtuza wrote: > > I have my application running on tomcat 5.5, it only has static pages. I > removed some page from my application and want to redirect any request to > deleted resource to homepage. Can someone point me how this can be done. A custom 404 page wou

Tomcat 301 redirect

2009-08-25 Thread Murtuza
I have my application running on tomcat 5.5, it only has static pages. I removed some page from my application and want to redirect any request to deleted resource to homepage. Can someone point me how this can be done. -- View this message in context: http://www.nabble.com/Tomcat-301-redirect