aspose file tools*
The moose likes Struts and the fly likes rtexprvalue for html:text  value attribute inside logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "rtexprvalue for html:text  value attribute inside logic:iterate" Watch "rtexprvalue for html:text  value attribute inside logic:iterate" New topic
Author

rtexprvalue for html:text value attribute inside logic:iterate

Sri Ram
Ranch Hand

Joined: Sep 08, 2002
Posts: 48
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

Joined: Feb 05, 2003
Posts: 4727

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.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rtexprvalue for html:text value attribute inside logic:iterate