Hi Phil,

    If I understood you write, you have confusions over "forward" and
"ForwardAction" due to the name you have chosen for the Action subclass.
ForwardAction as you have defined in your "type" attribute could be named
anything. A forward attribute in your struts configuration file tells the
framework where to redirect/forward the control. There could be multiple
entries for "forward" each pointing to different destinations and the one
that is chosen depends on to what you forward from within Action subclass in
your case ForwardAction. They serve different purpose.

Regards,
Ashish.
[Provedu do Bezkonechnostiu]


----- Original Message -----
From: "Phil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 11:51 AM
Subject: Forward attribute vs. ForwardAction


> 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]
>
>

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

Reply via email to