In my
jsp page, there are many textbox which have similar name, for example, text0, text1, .... , text9. In jsp, I can generate this code:
<% for (int i=0; i<10; i++) { %>
<input type="text" name="text<%= i %>">
<% } %>
However, when I use
struts in jsp page, I can't add
JAVA code in the tag of struts :
<html:text property="text<%= i %>"/>
I know the above line is incorrect. How can I generate these textbox dynamically by using struts? Thanks!
Stephen Lee