tnx friend.,

i got the result.

instead of using <s:textfield name="textFields[0]" />, i have replaced for
(within JS method)

<input type='text' name='locationId[" + num +  "]' value=''
id='dyamicRowAction_locationId_" + num +  "_'/> 

(its actual replacement html tag for S2 tag - get it from view source ).

if anything else let u update
B-)





alvins wrote:
> 
> You can do something similiar to the following -
> 
> In your action create -
> 
> List<String> textFields = new ArrayList<String>();
> 
> In your jsp you do the following -
> 
> <s:textfield name="textFields[0]" />
> <s:textfield name="textFields[1]" />
> <s:textfield name="textFields[2]" />
> 
> etc.
> 
> 
> 
> sivamIsha wrote:
>> 
>> dear nabble,
>> 
>> Help needed for updating an list in jsp with values added as dynamic row
>> in STRUTS2.
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--dynamic-row-in-STRUTS2-tp20355876p20578403.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to