Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts TextBoxes

 
srikanth paideti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set values to Text Boxes dynamically.

I have to set values in text box from ArrayList. Iam using Logic:iterator.

My code is

<logic:iterate id="det" name="PatientActionForm" property="billDetailsList" indexId="index">
<tr class="style18"> <td nowrap>
<div align="center"> <bean:write property="bill" name="det"></bean:write></div></td>
<td nowrap>
<div align="center"><bean:write name="det" property="createdDate"></bean:write></div></td>
<div align="center"><html:text property="bill" /></div></td>
</logic:iterate>
 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srikanth paideti wrote: <div align="center"><html:text property="bill" /></div></td>
You already have one of the solutions in your own code. Although you may need to set the name attribute of html:text
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic