sendRedirect(...) tells the browser to use a resource in a different
location. That location can be same webapp, different webapp, different
server.
forward(...) is for the same server only.
In context:
servletContext.getRequestDispatcher(path).forward(...);
Out of context:
Hi,
I wrote Tomcat's Balancer webapp partially to address this need. Check
it out.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 6:26 AM
To: Tomcat Users List
Subject: Re: Rewriting URLs
Is it possible to have Tomcat interpret one URL, e.g.
http://www.mysite.com/dir/dir/file
to really load another one, e.g.
http://www.mysite.com/otherdir/otherfile.do
I think Apache can do this with mod_rewrite; is there a Tomcat
equivalent? I need this to maintain backward compatibility for
Have you tried the HttpServletResponse .sendRedirect( String url ) method?
Robert S. Harper
801.265.8800 ex. 255
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jacob Weber
Sent: Wednesday, July 28, 2004 3:07 PM
To: [EMAIL PROTECTED]
Subject: Rewriting URLs
At http://funkman.home.comcast.net/ I have a project called ServletUtils.
You can use either RedirectFilter or ForwardFilter. They both can use regex's.
-Tim
Jacob Weber wrote:
Is it possible to have Tomcat interpret one URL, e.g.
http://www.mysite.com/dir/dir/file
to really load another one, e.g.
Tim Funk [EMAIL PROTECTED] wrote:
At http://funkman.home.comcast.net/ I have a project called ServletUtils.
You can use either RedirectFilter or ForwardFilter. They both can use regex's.
Robert Harper [EMAIL PROTECTED] wrote:
Have you tried the HttpServletResponse .sendRedirect( String url )