newton.dave wrote:
> 
> Piotr Falenczyk <[EMAIL PROTECTED]> wrote:
>> I need to display all the names of Imports, and allow to edit every one
>> of
>> them in one page. What I do now is somethin like that ion JSP. Displaying
>> values work just fine, but I canno't change them (not stored back in the
>> session)
>> 
>> <s:iterator value="imports">
>>   <s:textfield name="name" />
>>   </br>
>> <s:iterator/>
> 
> One way is to the "status" attribute to your <s:iterator...> tag and use
> it
> in your <s:textfield.../> tag as part of the name:
> 
> <s:iterator value="imports" status="stat">
>   <s:textfield name="name[%{#stat.index}]"/>
> </s:iterator>
> 
> that as the index in your <s:textfield.../>'s name value. (The syntax may
> be
> a bit off, but that's the idea.)
> 
> Dave
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Thanks, that solved the problem.

Dave saved my day.

Regards

Piotr

-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-collection-of-objects-and-JSP-tp15331960p15338160.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