Sorry, but you described #2 and not #4. On Thu, 2005-05-12 at 09:49 +0100, Allistair Crossley wrote: > #4 is pretty much the standard. > > your bean declares fields, you use the struts-html tags to draw your form and > link it to the action mapping. also use struts tags to render a block of > error messages in a list, or next to each form input. the action mapping > declares it uses the form bean. turn validate="true" on. declare your > validation rules in validation.xml for your bean. execute the jsp with the > form, fill it out, if it fails, your form reloads and struts-html > auto-populates the form again for you. > > you can also use validate="false" on teh action mapping, which means you get > to one of your custom actions and get passed the form in the execute method. > you then need to obtain the validation yourself using form.validate() and > saveErrors if any are present. you can forward to your form again if you wish > and it will still be populated. > > that is I believe why #4 is most peoples' answer as it's the most useful. > > Allistair. > > > -----Original Message----- > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Sent: 12 May 2005 09:42 > > To: Struts Users Mailing List > > Subject: RE: [POLL] What do you use action forms for? > > > > > > To all of the #4 voter. > > > > Can you bring in an example? > > I mean what exactly do you show on the output page? > > > > thanx > > Leon > > > > > > > > -----Original Message----- > > > From: Marco Mistroni [mailto:[EMAIL PROTECTED] > > > Sent: 12 May 2005 09:05 > > > To: 'Struts Users Mailing List' > > > Subject: RE: [POLL] What do you use action forms for? > > > > > > > > > #4 .. > > > > > > > #1 - so I generate them from my POJOs using XDoclet. All > > the other > > > > frameworks I use (JSF, Spring, Tapestry and WebWork) > > allow me to use > > > my > > > > POJOs directly. > > > > > > > > Matt > > > > > > > > On May 11, 2005, at 4:02 PM, Michael Jouravlev wrote: > > > > > > > > > Turns out, that my way of using action forms differs > > from many other > > > > > Struts users' habits. So, I am wondering how do you use action > > > forms. > > > > > I could not find the same poll in mailing list archives, so I am > > > > > starting this one. > > > > > > > > > > You can answer here in the thread, or in the poll form, which I > > > > > created on my site: > > http://www.superinterface.com/projects.htm But > > > > > don't answer in both places ;) I wish wiki had a way to > > do polls. > > > > > > > > > > What is your preferred way to use action forms? > > > > > #1 Prefer not to use action forms at all > > > > > #2 For input data only (usually collected from HTML form) > > > > > #3 For output only (to be used in JSP) > > > > > #4 Same form for input and output > > > > > #5 One form for input, another for output > > > > > #6 Other > > > > > > > > > > Thanks, > > > > > Michael. > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -------------------------------------------------------------- > > ------------------ > > > The information contained herein is confidential and is > > intended solely for the > > > addressee. Access by any other party is unauthorised > > without the express > > > written permission of the sender. If you are not the > > intended recipient, please > > > contact the sender either via the company switchboard on > > +44 (0)20 7623 8000, or > > > via e-mail return. If you have received this e-mail in > > error or wish to read our > > > e-mail disclaimer statement and monitoring policy, please refer to > > > http://www.drkw.com/disc/email/ or contact the sender. 3167 > > > > > -------------------------------------------------------------- > > ------------------ > > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> > ------------------------------------------------------- > QAS Ltd. > Developers of QuickAddress Software > <a href="http://www.qas.com">www.qas.com</a> > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > ------------------------------------------------------- > </FONT> > > > --------------------------------------------------------------------- > 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]