DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14150>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14150

Allow <bean:write/> to use any subclass of java.text.Format





------- Additional Comments From [EMAIL PROTECTED]  2002-11-04 22:54 -------
I've looked, three times now, at the JSTL and I cannot figure out how to do any
of the following tasks:

1) Take an email address in a string in the form:
First Last <email@domain>
and convert it to:
<span title="email@domain">First Last</span>

2) Take a size in bytes and convert it into an abrivated form:
123456 becomes 123K
123456789 becomes 123M

3) Truncate a string line to a certain number of characters:
Re: about the graphs on the foo bar report last month from John Doe
becomes:
<span title="Re: about the graphs on the foo bar report last month from John
Doe">Re: about the graphs on the foo bar report la...</span>

With my bean:write extension I can write a java.text.Format that does each of
the things with a few lings of code and is reusable. My format method for each
formatter is rather short: #1 is about 25 lines of commented code, #2 is about
15 lines, and #3 is 10 lines. Also I can reuse the formatter logic between the
different jsp pages while it wasn't obivous to me if that is possible with JSTL.

I love Struts strongly resists the urge to become bloat ware but I don't think
this feature would be classified as bloat.

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to