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]