You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by An...@dana.com on 2002/02/19 15:14:16 UTC

Using in a html tag value property

This seems like it should be simple but I'm having trouble with how to use
a <bean:write> as the value in a struts <html:> tag.  For instance, the
following code works but I'd like to use instead, something like the line
that is commented out below.

<logic:iterate id="po" name="purchaseOrders" type
="com.dcc.brum.po.PurchaseOrder">
<tr>

     <!-- Can't get to work -->
<!-- <td width="4%"><html:radio property="objectID" value="<bean:write name
='po' property='objectID'/>"/></td>      -->

     <!-- Works, but is kind of old school -->
     <td width="4%"><html:radio property="objectID" value="<%=
po.getObjectID().toString() %>"/></td>

     <td class="D-list" width="18%"><bean:write name="po" property
="customerLegalName"/></td>
     <td class="D-list" width="14%"><bean:write name="po" property
="description"/></td>
     <td class="D-list" width="17%"><bean:write name="po" property
="vendorName"/>&nbsp;</td>
     <td class="D-list" align="center" width="10%"><bean:write name="po"
property="PONum"/></td>
     <td class="D-list" align="right" width="14%"><bean:write name="po"
property="POTotalAmt"/></td>
     <td class="D-list" align="center" width="9%"><bean:write name="po"
property="PODate"/></td>
     <td class="D-list" align="center"width="7%"><bean:write name="po"
property="POStatus"/></td>
     <td class="D-list" align="center" width="7%"><bean:write name="po"
property="POStatus"/></td>
</tr>
</logic:iterate>


Thanks, for any help.


Andy

****************************
Andrew Goodnough
Dana Commercial Credit
Programmer
(419) 891-2065


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>