You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Yu <jo...@scioworks.com> on 2001/11/07 10:28:11 UTC

Re: Collecting several rows in a page via FORM - Can struts handle this???

Greg,

You can have collection(s) in an actionForm (aka formBean).

Not sure if this can do exactly what you need, but you may want to take a 
look at the "indexed tag" extension available in the nightly build. See,

   http://www.husted.com/struts/resources.htm#taglibs



At 01:52 pm 07-11-2001 +1000, you wrote:
>Hi all,
>
>What I am trying to understand is whether the struts ActionForm/Form 
>concept can handle the case where you want to effectively want to collect 
>several rows of input from the user.  Each row has a standard set of 
>parameters that would normally relate to an ActionForm.
>
>This is really a case where you would like to struts to populate a 
>collection of actionforms from the input, validate each row or actionform 
>details in the collection, and then make the collection available to the 
>actionclass.
>
>For example instead of the user having to go through mutliple interactions 
>to add several records, allow them to input multiple in a page.  Specific 
>example is allowing an administrator to add up to 10 user (and their 
>details) in a single page.
>
>  ------------------------------------
>  Form
>  UserName1     Address   Phone  (each an input field)
>  UserName2     Address   Phone
>  UserName3     Address   Phone
>  UserName3     Address   Phone
>  ------------------------------------
>
>Can struts handle this?  If yes, a worked example would be great if 
>someone has one.
>
>
>Cheers
>Greg

-- 
John Yu                       Scioworks Technologies
e: john@scioworks.com         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>