Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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