You cannot embedded a tag within a tag attribute value.
You can solve this by using either scriplets or Struts-EL.

<%
String mailto = // get value
%>
<html:link href="<%=mailto%>"></html:link>


robert
> -----Original Message-----
> From: deepaksawdekar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 8:08 AM
> To: Struts Users Mailing List
> Subject: mailto in html:link
> 
> 
> I want to send a email on click of some icon.
> I am doing this by using mailto in <html:link> tag, email id has 
> to be get from a property of bean,
> jsp is as follows 
> ......
> <html:link href="mailto:<mytag:map name="it" 
> key="email"></mytag:map>"></html:link>
> ............
> mytag is a customised tag to get a value of key from hashmap.
> 
> When i try the above i got the error
> org.apache.jasper.JasperException: /pages/myContact.jsp(46,88) 
> equal symbol expected
> 
> Am i doing something wrong. Is there any better way to do this..
> 
> 
> TIA,
> Deepak        
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to