ahh of course thats how to play it.... thank you!!!
Another problem now occurs. If I need to use the bean:message in name
of the link, i.e.,
<html:link page="/donor/Select.do" paramName="row" paramId="key" paramProperty="donor">
<bean:message key="whatever"/>
</html:link>
and this key value should be dynamic too, how do I accomplish this??
^torsten
> -----Original Message-----
> From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: RE: dynamic links in struts....
>
>
> Hi,
>
> Have a look at this snip provided by Ted Husted a couple of days ago. Note
> the use of the html:link tag.
>
> 'Here's a reference snippet from a working page. The bean result has
> accessors for donor, sortName, email, and website, where donor is a unique
> key. Here the key is also used as the link text, but any other value from
> the bean could have been linked instead. This snippet generates links in the
> form:'
>
> /donor/Select.do?key=1234
>
> where result.rows.getDonor() returns 1234
>
> <logic:iterate name="result" property="rows" id="row">
> <td align="left">
> <html:link page="/donor/Select.do" paramName="row" paramId="key"
> paramProperty="donor">
> <bean:write name="row" property="donor" filter="true"/>
> </html:link>
> </td>
> <td align="left">
> <bean:write name="row" property="sortName" filter="true"/>
> </td>
> <td align="left" nowrap>
> <bean:write name="row" property="telephone" filter="true"/>
> </td>
> <td align="left" nowrap>
> <font size="1"><a href="mailto:<bean:write name="row"
> property="email"/>"><bean:write name="row" property="email"
> filter="true"/></a></font>
> </td>
> <td align="left">
> <font size="1"><a href="http://<bean:write name="row"
> property="website"/>" target="_blank"><bean:write name="row"
> property="website" filter="true"/></a></font>
> </td>
> </tr>
> </logic:iterate>
>
>
> Jon.
>
>