struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <rtay...@mulework.com>
Subject RE: What is wrong with this expression?
Date Wed, 17 Sep 2003 13:07:25 GMT
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:mehran.zonouzi@db.com]
> Sent: Wednesday, September 17, 2003 8:50 AM
> To: struts-user@jakarta.apache.org
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message