Wrap taglib ver. 1.4

    Custom JSP taglib lets you wrap long strings without breaks. In HTML tables are the standard way to format (set size) for your data. In the same time if you have some very long line without breaks in your column than browser will ignore your size settings for the table. You can fix this problem with wrap tag. This tag adds breaks for long strings so you will be able to control the size for your tables. For example:

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

<table width="300"><tr>

Tags are:


Body tag forces wraps for the long string without breaks. Parameters are:

1) size Optional parameter. Describes a maximal size for non-breaking strings. Tag will use this value for calculating places (positions) for breaks. Default value is 30.
2) break Optional parameter. Describes a symbol for inserted breaks. Default value is \n - line break (new line).
3) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (wrap).

for downloading:

Library: wraptag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: