How do I achieve indexed property access dynamically ?
The following doesn't work.
<html:form name='testForm' type='test.TestForm' action='test.do'>
<%
TestForm testForm = (TestForm) session.getAttribute("testForm");
int i = 0;
for (i=0; i < testForm.getNames().length; i++) {
%>
Text: <html:text property='names[i]'/>
<%
}
%>
<html:submit>Go</html:submit>
</html:form>
It says,
javax.servlet.ServletException: Invalid indexed property 'names[i]'
Thanks,
ramky
- RE: indexed property iteration Ramakrishna Reddy Kandula
- RE: indexed property iteration Siggelkow, Bill

