Smart taglib ver. 1.6

    Custom JSP taglib. Body tag smart parses own body, recognizes possible hyperlinks and adds mailto: and href HTML tags. This tag lets you for example format user's input without the need to add HTML stuff manually.

For example:
 


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

<set:smart>
  <i>Feel free to contact info@servletsuite.com or see
  our web site: www.servletsuite.com</i>
</set:smart>

and you will get the following output:

Feel free to contact info@servletsuite.com or see our web site: www.servletsuite.com

Tags are:

smart

Body tag. Parses own body, recognizes hyperlinks and adds HTML code for them. Parameters are:

1) id Optional parameter. Describes a page scope variable for modified body. Without this parameter tag just prints data.
2) target Optional parameter. Describes a target frame for hyperlinks. Default value is _blank.
3) checkDomain Optional parameter. Possible values are true or false. If this value is true tag will test domain's availability. Default value is true.
4) maxLength Optional parameter. Describes a maximal length for URL's in hyperlinks
5) cond Optional parameter describes a boolean value this behavior depends on. Default value is true (do conversion).

for downloading:

Library: smarttag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: