On Tue, Aug 25, 2009 at 11:26 AM, Murtuza<khanmurt...@gmail.com> wrote: > > I only want to re-link old uri to home page and any request which does not > exist to error page. I added > > <error-page> > <error-code>404</error-code> > <location>/404.jsp</location> > </error-page> > > to web.xml and used below code which I found after google but > request.getRequestURI() returns 404.jsp rather then the old-page.html, so it > did not redirect the request.
The Servlet Spec is your friend :-) SRV.8.4.2 Forwarded Request Parameters /* that's the section in 2.5, anyway */ -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.com twitter: @hassan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org