Hello Bernhard,
I am not sure if I got your problem right. Do you want to format the link name or the
link itself?
If you want to format the link, I would try to do someting like:
<a href="/main.do?NameForParameter=<bean:write name="chooseForm" property="vecOptions"
type="com.xxx.Option" id="option"/>">
I did not create a link like this before, but I use a similar construct, where I
access the value of a bean property. This is not using the sturts <html:link> tag, but
it should work, too.
Marcel
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:28 AM
To: [EMAIL PROTECTED]
Subject: html:link
I have a <logic:iterate> tag in which I list items to a table. In a column
at the right side I want to add a "details" link which should link to
detailed information of this item.
How can I use the <html:link> tag delivering a code of an item in my
iteration loop to my action?
<logic:iterate name="chooseForm" property="vecOptions" type="com.xxx.Option"
id="option">
<tr>
<td>
<bean:write name="option" property="code"/>
</td>
<td>
<bean:write name="option" property="text"/>
</td>
<td>
<html:link page="/main.do" ??? > details
</html:link>
</td>
</tr>
</logic:iterate>
This is my iteration tag. In the 3rd row I want a link which calls the
action "main" and the "code" from the 1st row should be delivered.
Thanks for any help!
B.