Andreas Hartmann wrote:
Hello,
I've got a lot of html:text forms, which are created on the fly -
therefore I don't know during programming, which getter and setter-methods
will be needed. I assume, it works by using arrays.
<logic:iterate property="value" id="entry" indexId="ctr" >
<html:text name="entry" property='<%="value["+ctr+"]"%>' >
</logic:iterate>
More than likely you really don't need or want to dynamically create
properties. (You couldn't do it like you were doing above anyway.)
What you probably want to do is simply use a List or a Map as the
property itself in the ActionForm and make sure then you populate your
List or Map with regular beans. You beans are 'nested' in the List or
Map. I have a tutorial showing this here
http://www.learntechnology.net/struts-nested.do
If you can give more specifics of exactly what you are trying to
capture, I can help out more.
--
Rick
http://www.learntechnology.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]