struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: embedding email address in <html:link>
Date Thu, 24 Oct 2002 18:31:45 GMT
> -----Original Message-----
> From: Scott Hodson [mailto:scott@ubero.com]
> Sent: Thursday, October 24, 2002 11:19 AM
> 
> <logic:notEmpty name="contact" property="email">
>   <html:link href="mailto:<%=contact.getEmail()%>">
>     <bean:write name="contact" property="email" filter="true" />
>   </html:link>
> </logic:notEmpty>

Attribute value scriptlets have to be for the ENTIRE value, not a portion of
it.  You have to do this:

 <html:link href='<%= "mailto:" + contact.getEmail() %>'>

If you're using the nightly build, you could use the Struts-EL package,
which allows you to integrate usage of the JSTL into your Struts tags, which
would allow the following syntax:

 <html-el:link href="mailto:${contact.email}">

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


Mime
View raw message