Hi Hubert,

thanks for your answer.
I thought of this too. But then i examined the source code of the
RequestProcessor. There, the forward element is processed just before the
operations which are related to the actions (like creating Action instances
and calling the execute() method) are processed. After this there are no
more features called. So i think using the forward attribute has no impact
to any features of struts. All operations they need to work right are done
before the forward attribute is processed.
But maybe i didnt examine the source code right. If you know a case in which
a feature does not work with the forward attribute this would be very
helpful to me.

Phil


----- Original Message -----
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 5:39 PM
Subject: Re: Forward attribute vs. ForwardAction


> Phil,
>
> ForwardAction allows a response to still go through struts processing.
> Not all of the Struts features will kick in or perform as expected
> when you use forward="/login.jsp".
> I don't have a full list of which ones will still work and which ones
> won't, and it may depend on the complexity of your app, so it may or
> may not affect you.  Think of ForwardAction as add'l future-proofing
> for your app/action.
>
> Hubert
>
> --- Phil <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > i write my thesis about the struts framework and i have a question about
the
> > ForwardAction class. I think the forward attribute in an action-mapping
has
> > the same effect as the use of the ForwardAction, so why is there a
special
> > class to perform a forward?
> >
> > I think you get the same result if you use:
> >
> > <action
> >     path="/login"
> >     type="org.apache.struts.actions.ForwardAction"
> >     parameter="/login.jsp" />
> >
> > or:
> >
> > <action
> >     path="/login"
> >     forward="/login.jsp" />
> >
> > So what is the benefit of the ForwardAction class?
> >
> > Thanks,
> > Phil
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to