aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts TextBoxes" Watch "Struts TextBoxes" New topic
Author

Struts TextBoxes

srikanth paideti
Greenhorn

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>
</logic:iterate>
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts TextBoxes