• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rtexprvalue for html:text value attribute inside logic:iterate

 
Sri Ram
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to assign dynamic value (rtexprvalue) for the value attribute of html:text which appears inside a logic:iterate tag as shown below

Is that the correct way to do this?

<logic:iterate id="list1" name="dataHolder" property="dataVector" scope="request">
<tr>

<td width=100px align=center><html:text property="property1" value="<bean:write name="list1" property="name"/></td>

</tr>

Your help is highly appreciated
V. Arumgugam
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't put a bean tag inside of an html tag.

If you take advantage of what Struts can do for you, specifying the value attribute is not necessary. In generating the html, Struts will look up the properties' corresponding getters in the ActionForm and set the values it finds as the value attributes in the html.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic