Re: What is wrong with this expression
Thanks Rob. It worked! -- 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]
Re: What is wrong with this expression?
<% java.lang.String hrefLink = "/CRUDUser.do?method=showUserProfile&userId="+userId;%> - Original Message - From: "Mehran Zonouzi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 2:49 PM Subject: What is wrong with this expression? > Hi, > > I can not understand why the below does not function.. > > <%=c ontact.getLastName()%>, <%=contact.getFirstName()%> > I would recommend to do this <% java.lang.String hrefLink = "editcontact.do?page=editcontact&contactid="+contact.getID() ; %> <%=contact.getLastName()%> Create your href as a String before, and then pass this as a variable.. Vangos. > > > When the mouse is hovering over the link I get the below: > > http://servername/editcontact.do?page=editcontact&contactid=<%=contact.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]
RE: What is wrong with this expression?
Tag attribute values must be a single expression. Try this: <% String action = "editcontact.do?page=editcontact&contactId=" + contact.getID(); %> <%=contact.getLastName()%>, <%=contact.getFirstName()%> 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.. > > action="editcontact.do?page=editcontact&contactid=<%=contact.getID > ()%>"><%=contact.getLastName()%>, <%=contact.getFirstName()%> > > > > 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]