• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Struts TextBoxes

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic