jQuery in Action, 2nd edition
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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 4725

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: rtexprvalue for html:text value attribute inside logic:iterate
 
Similar Threads
Iterate Hashmap through struts
logic:present not working??????
Iteration of List in JSP
On htm:multibox
how to track?