Tag attribute values must be a single expression.
Try this:
<%
String action = "editcontact.do?page=editcontact&contactId=" +
contact.getID();
%>
<html:link action="<%=action%>"><%=contact.getLastName()%>,
<%=contact.getFirstName()%></html:link>
robert
> -----Original Message-----
> From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 17, 2003 8:50 AM
> To: [EMAIL PROTECTED]
> Subject: What is wrong with this expression?
>
>
> Hi,
>
> I can not understand why the below does not function..
>
> <html:link
> action="editcontact.do?page=editcontact&contactid=<%=contact.getID
> ()%>"><%=contact.getLastName()%>, <%=contact.getFirstName()%>
> </html:link>
>
>
> When the mouse is hovering over the link I get the below:
>
> http://servername/editcontact.do?page=editcontact&contactid=<%=con
> tact.getID()%>
>
> instead of
>
> http://servername/editcontact.do?page=editcontact&contactid=1234
>
> what am I doing wrong?
>
>
>
> --
>
> This e-mail may contain confidential and/or privileged
> information. If you are not the intended recipient (or have
> received this e-mail in error) please notify the sender
> immediately and destroy this e-mail. Any unauthorized copying,
> disclosure or distribution of the material in this e-mail is
> strictly forbidden.
>
>
>
> ---------------------------------------------------------------------
> 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]