Hi Ashish, thanks for your answer. But i think you missunderstood me. In the Struts Framework, there is a prebuild Action class called ForwardAction. The ForwardAction and the forward attribute of an action-mapping (see my example) serve the same purpose which is to forward from one JSP to another. So you dont have to write your own Action class to achieve a simple forward between two pages. So, i am confused why there is a extra prebuild class, if you get the same effect by using the forward attribute.
regards, Phil ----- Original Message ----- From: "Ashish Sinha" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 7:49 PM Subject: Re: Forward attribute vs. ForwardAction > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]