This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts TextBoxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts TextBoxes" Watch "Struts TextBoxes" New topic

Struts TextBoxes

srikanth paideti

Joined: May 25, 2011
Posts: 2
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>
Rudy Gireyev
Ranch Hand

Joined: May 03, 2011
Posts: 39
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
I agree. Here's the link:
subject: Struts TextBoxes
It's not a secret anymore!