I actually found the page you were mentioning before. But that doesn't resolve my problem: In "Dynamic Indexes for Indexed Properties" there is an example for using a text-field
to alter a String value:

<html:text name="stringbean" property='<%= "labelValue[" + ctr + "].label" %>' />

Looks very nice, but the textfield accesses the getter and setter of the LabelValueBean that is returned from the StrinBean. My Bean just returns the the String-object that has
actually no getter and setter for it's value.

I hope that could clarify myy problem ;)

Greetings,

Florian

Zitat von Rahul Akolkar <[EMAIL PROTECTED]>:

[Zitattext verstecken]
On 6/13/06, Florian Barth <[EMAIL PROTECTED]> wrote:
Hi folks!
I'm having a little problem with a jsp.
My FormBean has a List of Strings as value.
Now I would like to iterate over the elements of that list, creating a
text-field for every element the list contains.
At the moment I can online write out the elements using this code-snippet:
<logic:iterate name="FormBean" property="stringList" id="str">
<bean:write name="str" />
</logig:iterate>

Just putting in <html:text name="str" property="fooBar"> doesn't work,
because the str-String-Object doesn't have getter or setter for it's
value, so I didn't find an substitute for fooBar that works. I pretty
sure that there is an easier way than writing a wrapper for String with
getter and setter.

<snip/>
http://struts.apache.org/struts-action/struts-taglib/indexedprops.html

-Rahul

I searched the Mailing-List and googled around a bit, but didn't find
something useful.

Hope you can help me,

Thank you very much,

Regards,
Florian

---------------------------------------------------------------------
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]

Reply via email to