Text to HTML taglib ver. 1.4


    Custom JSP taglib. Body tag text2html lets you convert on the fly any text into HTML format. Tag appends <br> HTML tags for the each line and replaces all special characters like < etc. You can use it for example when you need to publish some source code etc.

For example:
 


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

 <t2h:text2html>
  ...<!-- e.g. include some text file -->
 </t2h:text2html>

Tags are:

text2html

Body tag converts own body into HTML format. Parameters are:

1) exclude Optional parameter. Describes a string of symbols that will be passed to HTML code "as is".
2) maxLength Optional parameter. Describes a maximal length for the source string without spaces or line breaks. Converter automatically adds space after maxLength symbols.
3) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (convert body)

for downloading:

Library: t2htag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

     

Also in Coldtags: