In my particular usage (which might be half or even fully cocked) I do the following:
For Input, I take the details in via a form, like most I assume; For Viewing/Editing or Amending I take a POJO from Hibernate and then using PropertyUtils copy the data from the POJO to the Form and then use the form to display as either text (for Viewing) or as objects (for Editing). This ensures that I do not have to cater for two types of object (POJO and Form) within the JSP; Christopher Marsh-Bourdon www.marsh-bourdon.com -----Original Message----- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 09:49 To: 'Struts Users Mailing List' Subject: RE: [POLL] What do you use action forms for? Hello, In output page I just display actionform properties.. For example, @work, I display actionform properties after a search, or after an update @home, now that I realize it, I use them only for input..because in output of my action I have either a statusmsg or a collection of POJO to display regards marco -----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] --------------------------------------------------------------------- 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. 3166 -------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]