On 1/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In WriteTag.java > // ...... <snip/> > // ... > if (abbreviate > 0) { > output = StringUtils.abbreviate(output, abbreviate); > } > <snap/> > > Then we can use <bean:write name="somename" abbreviate="length"/> for short > text we want. > <snip/>
FWIW, I think ellipsis can be quite useful in some situations. You'll probably have better luck of this getting accepted if you: * Attach a patch to an enhancement request filed in Bugzilla [1] under product: Struts, component: Taglibs * Inline the 4-odd lines of StringUtils.abbreviate code * I've never liked the IllegalArgumentException so maybe have length be the length without the ellipsis, thats upto you ;-) -Rahul [1] http://issues.apache.org/bugzilla/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]