The html:link version of what you have below should look something like
this:
<html:link
href="action/delUser"
paramId="username"
paramName="user"
paramProperty="username">
Del
</html:link>
If it doesn't work, what are the symptoms? What does the generated HTML look
like?
-----Original Message-----
From: Diego Bursztyn [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 February 2003 9:23 AM
To: Struts Users Mailing List
Subject: RE: html:link
thanks for your help! but I could not make it work.
I've added the following which works fine but I'm not using the html tag.
<a href="action/delUser.do?username=<bean:write name="user"
property="username" filter="true"/>">del</a>
-----Original Message-----
From: Ken Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 06, 2003 4:25 PM
To: [EMAIL PROTECTED]
Subject: Re: html:link
I think you want to use the param attributes of the link tag. It would
probabaly look something like this:
<html:link href="action" paramId="uname" paramProperty="username" />
I might be a little off but I think the above should generate something like
this.
<a href="action.do?uname=user123" >
If this doesn't work follow the link for the documentation.
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
-ken
>>> [EMAIL PROTECTED] 02/06/03 03:15PM >>>
Hi,
I'm trying to add an <html:link tag to point to "action/delUser" action and
pass the username attribute within an iteration over an ArrayList of Users
(bean). I did some research but could not find the syntax.
Any help would be greatly appreciated
<logic:iterate id="user" name="usersList" scope="request">
<tr>
<td><bean:write name="user" property="username"
filter="true"/></td>
<td><bean:write name="user" property="firstName"
filter="true"/></td>
<td><bean:write name="user" property="email"
filter="true"/></td>
<td><bean:write name="user" property="joinDate"
filter="true"/></td>
<td><bean:write name="user" property="interest"
filter="true"/></td>
<td><html:link ???????>del</html:link></td>
</tr>
</logic:iterate>
Diego
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]