On Tue, 2004-09-07 at 23:14, Marco Tedone wrote: > The downside, as far as I can see, is that I'd have to declare a new class > for any new form. Are there any other advantages from using ActionForms?
Not necessarily - you can use one ActionForm to collect data from several HTML forms, for use in a wizard-like situation. Also you have DynaForms, which don't need a class at all - they're just defined in the struts-config.xml. Being able to subclass forms is also helpful, for example: PreferredCustomerForm extends BasicCustomerForm { private String goldMembershipId; ...etc... } > > Marco > > ----- Original Message ----- > From: "Amleto Di Salle" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, September 07, 2004 3:09 PM > Subject: R: A couple of questions > > > Hi, > the ActionForm are used for the input form of your application. > If you use the ActionForm in your Action you don't have to use the > HttpServletRequest.getParameter("ID") method in order to obtain the > value of the parameter "ID", for example. > Furthermore, using ActionForm with package Validator you can validate > your forms in the client and server side. > > What's new in Struts 1.2.2 > http://struts.apache.org/userGuide/release-notes.html > > But the 1.2.2 has some problems. So in your case you can use the Struts > 1.1 > > > BR > /Amleto > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Matthew Van Horn <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]