String Tag library
Tag truncateNicely

A more intelligent substring. It attempts to cut off a string after a space, following predefined or user-supplied lower and upper limits, useful for making short descriptions from long text. It strips the HTML out as a part of the code. Patches on a version which doesn't strip the HTML will be gratefully received.

Will output: '<The quick brown...>' &lt;<str:truncateNicely lower="13" upper="20">The quick brown fox jumped over the lazy dog.</str:truncateNicely>

Tag Information
Tag Classorg.apache.taglibs.string.TruncateNicelyTag
TagExtraInfo ClassNone
Body ContentJSP
Display NametruncateNicely

varfalsetruejava.lang.StringVariable to store result in.
lowerfalsetruejava.lang.StringMininum length to truncate at.
upperfalsetruejava.lang.StringMaximum length the string can be. Will force a truncate at this point.
appendToEndfalsetruejava.lang.StringString to append to the end of the truncated string.

No Variables Defined.

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.