• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

question of struts

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic