MailTo taglib ver. 1.3


    Custom JSP taglib. This tag helps you to break and then reassemble some email address with JavaScript to help prevent spam. This script prevents spammers and email harvesters from finding your email address on your website. So this tag simply generates a scrambled mailto hyperlink with JavaScript or plain ASCII. For example:
 


<%@ taglib uri="taglib.tld" prefix="m" %>

<m:MailTo>info@servletsuite.com</m:MailTo>

and you will get the following:

Tags are:

MailTo

Body tag generates scrambled mailto hyperlink. Tag threats own body as an email address. Parameters are:

1) javascript Optional attribute. Describes a boolean value. If this value is true tag will use JavaScript for scrambling. Otherwise tag will use plain ASCII codes. Default value is true.

for downloading:

Library: mailtotag.jar    Description: taglib.tld

 © Coldbeans      Comments, suggestions?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: