Thanks, that worked. -----Original Message----- From: Karr, David [mailto:david.karr@;attws.com] Sent: Thursday, October 24, 2002 11:32 AM To: 'Struts Users Mailing List' Subject: RE: embedding email address in <html:link>
> -----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> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>