modperl-forwarding_modperl_vs_jsp

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Date: Tue, 12 Mar 2002 10:01:42 +0100
From: Martin Haase-Thomas <mht@meome-ag.de>
To: modperl@perl.apache.org
Subject: [OT?] What exactly is forwarding?


I know this is not perfectly the right list for my topic, but before 
subscribing to another for just one question... forgive me if I'm going 
to be boring. Even more, because my question is rather philosophical.

If you consider JSPs, there is a tag called <jsp:forward page="..." />. 
My question is: how do I have to understand 'forward'? The java 
documentation isn't that verbose, and I can imagine two possible meanings:
1. Forwarding is some sort of an internal redirect to the servlet engine 
which the browser will not be informed of.  From this point of view 
forwarding will be nearly the same as a dynamic include.
2. Forwarding is the same as a redirect.

Maybe a superfluous question for some of you, for me it isn't actually. 
So, if anyone knows an answer - or knows the number of the RFC I'll find 
the information: you're welcome!

===


Date: Tue, 12 Mar 2002 07:38:36 -0800
From: Paul Lindner <lindner@inuus.com>
To: Martin Haase-Thomas <mht@meome-ag.de>
Cc: modperl@perl.apache.org
Subject: Re: [OT?] What exactly is forwarding?

On Tue, Mar 12, 2002 at 10:01:42AM +0100, Martin Haase-Thomas wrote:
> Hi all,
> 
> I know this is not perfectly the right list for my topic, but before 
> subscribing to another for just one question... forgive me if I'm going 
> to be boring. Even more, because my question is rather philosophical.
> 
> If you consider JSPs, there is a tag called <jsp:forward page="..." />. 
> My question is: how do I have to understand 'forward'? The java 
> documentation isn't that verbose, and I can imagine two possible meanings:
> 1. Forwarding is some sort of an internal redirect to the servlet engine 
> which the browser will not be informed of.  From this point of view 
> forwarding will be nearly the same as a dynamic include.

*ding* correct!  Basically it says, dump any buffered output and start
a new request.

> 2. Forwarding is the same as a redirect.

nope, see above.

> Maybe a superfluous question for some of you, for me it isn't actually. 
> So, if anyone knows an answer - or knows the number of the RFC I'll find 
> the information: you're welcome!

You'll find that $r->internal_redirect() is the mod_perl equivalent.
Also Apache::ASP containts the Transfer() method which accomplishes
the same thing.

===

Date: Tue, 12 Mar 2002 11:36:05 -0500
From: Perrin Harkins <perrin@elem.com>
To: Martin Haase-Thomas <mht@meome-ag.de>
Subject: Re: [OT?] What exactly is forwarding?

Paul Lindner wrote:
> You'll find that $r->internal_redirect() is the mod_perl equivalent.
> Also Apache::ASP containts the Transfer() method which accomplishes
> the same thing.

Personally, I always thought this was sort of a strange part of JSP.  It 
really shows the page-centric thinking behind it.  Doing a "forward" is 
essentially a GOTO statement for JSP.  When I write mod_perl apps, I 
never feel the need for that sort of thing, with so many better ways to 
accomplish things (OO, method calls, dispatch tables, template includes).

===


Date: Wed, 13 Mar 2002 08:08:30 +0100
From: Martin Haase-Thomas <mht@meome-ag.de>
To: modperl@perl.apache.org
Subject: Re: [OT?] What exactly is forwarding?


Perrin Harkins wrote:

> Paul Lindner wrote:
>
>> You'll find that $r->internal_redirect() is the mod_perl equivalent.
>> Also Apache::ASP containts the Transfer() method which accomplishes
>> the same thing.
>
>
> Personally, I always thought this was sort of a strange part of JSP.  
> It really shows the page-centric thinking behind it.  Doing a 
> "forward" is essentially a GOTO statement for JSP.  When I write 
> mod_perl apps, I never feel the need for that sort of thing, with so 
> many better ways to accomplish things (OO, method calls, dispatch 
> tables, template includes).

Thank you both. I thought so: it is one of these typical JSP features - 
but now it works in perl, too ;)

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu