Hi, I've got a Problem using the LazyValidatorForm while using indexed properties.
I tried to use the examples found at http://www.niallp.pwp.blueyonder.co.uk/ using the following code: <html:form action="/myActionPath" > <html:text name="lazyForm" property="labelValue" /> <html:text name="lazyForm" property="map(foo)" /> <html:text name="lazyForm" property="map(fool)" /> <logic:iterate name="lazyForm" id="products" property="products"> Product Code: <html:text name="products" property="code" indexed="true"/> Product Description: <html:text name="products" property="description" indexed="true"/> Product Price: <html:text name="products" property="price" indexed="true"/> </logic:iterate> </html:form> There are no properties configured at the struts-config.xml. The simple properties works well and also the maped properties work fine. But I get some headache with the indexed properties. Running the shown code I'll get a JSP Exception with "No collection found". This is correct, cause the first there is no property product in bean lazyForm. Why do I get such an exception using indexed properties and no exception using maped properties? I'm looking for a simple solution where I can provide a fixed number of indexed properties for a web based input form. I'm thinking of some code like the following: <c:forEach begin="0" end="2" var="i"> Enter your <c:out value="${i}"> property: <html:text name="lazyFormat" property="myProperty" indexed="true"/> </c:forEach> where I can access the properties in the action class with: List myProperites = (List) (((DynaBean)form).get("myProperty")); Is there a way to realize such behavoir with the LazyForm? Or is there maybe some other solution, using a DynaBean? Thanks Joerg ________________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]