Two Laptop Bag*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts TextBoxes
 
Similar Threads
html:select inside logic:iterate
Help me about html:select
using bean:write to display data
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope
How to pass an object through html:link