You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tracy12 <j_...@yahoo.com> on 2007/01/17 11:57:11 UTC
JSP forward Equivalent in mod_perl
Hi,
Java/Servlet/jsp world there are two types of http forwards/redirect
redirect -> This is make a complete new request, loose all the request
parameters
forward-> Will preserve all the information (e.g parameters) and forward to
the other URL
in mod_perl when we make a redirect (using the constant REDIRECT) it will
loose everything make a complete new request. Instead of this
How can I preserve the information (as in above java jsp forward) and
transfer to a another URL, I like to preserve the cookie and other request
parameters. Is this something possible in mod_perl.
Thanks,
--
View this message in context: http://www.nabble.com/JSP-forward-Equivalent-in-mod_perl-tf3026553.html#a8408219
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: JSP forward Equivalent in mod_perl
Posted by Perrin Harkins <pe...@elem.com>.
Geoffrey Young wrote:
> $r->internal_redirect
That's the most equivalent. You can also just call some other handler
directly:
Foo::handler($r);
- Perrin
Re: JSP forward Equivalent in mod_perl
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Tracy12 wrote:
> Hi,
>
> Java/Servlet/jsp world there are two types of http forwards/redirect
>
> redirect -> This is make a complete new request, loose all the request
> parameters
> forward-> Will preserve all the information (e.g parameters) and forward to
> the other URL
>
>
> in mod_perl when we make a redirect (using the constant REDIRECT) it will
> loose everything make a complete new request. Instead of this
> How can I preserve the information (as in above java jsp forward) and
> transfer to a another URL, I like to preserve the cookie and other request
> parameters. Is this something possible in mod_perl.
$r->internal_redirect
--Geoff