Well you are absolutely right, but it would be helpful , if you could post ur JSP code so we know what ur trying to do with the purposed thing for which you want the ActionForm Mapping.
Anyways, let me get your question right.ok. Try and relate to this document. First Name, Last Name and Phone Number are three input fields in JSP, you will have three correponding fields for these in the ActionForm Class. Now you want to have multiple instances of these fields in the View(JSP). And you want to post them in batch. If this is the scenario we are working with, I would suggest that you use the struts-logic thing in the JSP and in the ActionFrom bean you will have the just the basic structure, I mean only three fields in the ActionForm class. However, if your question is different, please ellaborate a bit more so I can over come the ambiguity. Regards ------------------------------------ Zille Hassan [EMAIL PROTECTED] United Matbouli Group 1st Floor, Matbouli Plaza PO Box556 Jeddah 21421 Kingdom of Saudi Arabia tel: +966 2 6512111 Ext:1901 ------------------------------------ -----Original Message----- From: Qasim Khawaja [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 1:20 PM To: Struts Users Mailing List Subject: Re: Posting multi record form I am not quite sure what you mean here. There is not issue with the initial rendering of the JSP page. The question is related primarily to the ActionForm properties. When a single record form is posted then each field of the ActionForm is populated and you can cast and use it in the Action. So in the single case you have String field1 String field2 etc In this multiple instance should the ActionForm fields be String[] field1 String[] field2 so that you can access each instance of field1 Q Zille Hassan wrote: > You might try desigining the JSP using the struts-logic > infrastructure, instead of using plain HTML or JSP. This will allow > you to add X(variable) number of records from the same page, without > having to add additional fields, in the JSP while designing. For this > you will not be needing any further modifications in the ActionForm > Bean. > > Struts will take care of it automatically. > > ------------------------------------ > Zille Hassan > [EMAIL PROTECTED] > United Matbouli Group > 1st Floor, Matbouli Plaza > PO Box556 Jeddah 21421 > Kingdom of Saudi Arabia > tel: +966 2 6512111 Ext:1901 > ------------------------------------ > > > -----Original Message----- > From: Qasim Khawaja [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 12:21 PM > To: Struts Users Mailing List > Subject: Posting multi record form > > > I am wanting to post a form which has a varying number of records. > Each record is the same. E.g. Field1, Field2, Field3 is a record and > the form consists of x number of these records. > > How should the ActionForm be defined so that all the values are > available? > > Q > > > > --------------------------------------------------------------------- > 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]