M - V - C components
I'm in doubt. Are *ActionForms* part of the Model or part of the View? I've read ActionForm beans are actually closer to the View than the Model. but I don't know why. Actually? Any explanation? And what about *Action*s? Are they part of the Model or part of the Control (as I supose)? Thank you very much, Guido. [EMAIL PROTECTED] Valladolid (Spain) Soy cliente de Retecal y me siento estafado, no se lo recomiendo a nadie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: M - V - C components
ActionForms are strictly view components. Action classes belong to the controller, as any business logic should be deferred to business delegates, session beans, helper classes, etc. -Original Message- From: Guido [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: M - V - C components I'm in doubt. Are *ActionForms* part of the Model or part of the View? I've read ActionForm beans are actually closer to the View than the Model. but I don't know why. Actually? Any explanation? And what about *Action*s? Are they part of the Model or part of the Control (as I supose)? Thank you very much, Guido. [EMAIL PROTECTED] Valladolid (Spain) Soy cliente de Retecal y me siento estafado, no se lo recomiendo a nadie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: M - V - C components
Hi Guido- You should think of the ActionForm as the data transfer helper that is used to get the data you want to render from the model to the view. The ActionForm's structure is really going to be dictated by your view layout so it seems natural to think of it as part of the view. The Actions are really part of the control. The ActionServlet provides the basic routing capabilities and the individual Action classes implement the steps required to translate incoming user gestures (i.e. button clicks or the like in the view) into user intentions (i.e. method invocations on the model). The Action is also responsible for getting the data into the ActionForm so that the JSP view can use it for rendering an HTML page. -Original Message- From: Guido [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: M - V - C components I'm in doubt. Are *ActionForms* part of the Model or part of the View? I've read ActionForm beans are actually closer to the View than the Model. but I don't know why. Actually? Any explanation? And what about *Action*s? Are they part of the Model or part of the Control (as I supose)? Thank you very much, Guido. [EMAIL PROTECTED] Valladolid (Spain) Soy cliente de Retecal y me siento estafado, no se lo recomiendo a nadie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: M - V - C components
Even I had the impression that Action forms are model.ActionsForms are not Model.Many get confused when they learn about ActionForm class.Even though it holds state of application,it is limited to teh user input . Actionform will hold the user input until it can be validated to business tier. And as you suppose Action Classes are part of controller in struts framework. Vinay - Original Message - From: Guido [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 2:08 PM Subject: M - V - C components I'm in doubt. Are *ActionForms* part of the Model or part of the View? I've read ActionForm beans are actually closer to the View than the Model. but I don't know why. Actually? Any explanation? And what about *Action*s? Are they part of the Model or part of the Control (as I supose)? Thank you very much, Guido. [EMAIL PROTECTED] Valladolid (Spain) Soy cliente de Retecal y me siento estafado, no se lo recomiendo a nadie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]