You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/11/01 00:11:58 UTC
DO NOT REPLY [Bug 14150] New: -
Allow to use any subclass of java.text.Format
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
Summary: Allow <bean:write/> to use any subclass of
java.text.Format
Product: Struts
Version: 1.1 Beta 2
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: sandymac@ufl.edu
It would be really nice and useful, at least to me, if I could create a custom
subclass of java.text.Format and tell <bean:write/> to use this formatter. The
current <bean:write/> really only supports java.text.NumberFormat and
java.text.SimpleDateFormat .
For example I would like to write custom a formatter to deal with String in the
common formats for email address, eg: "John Doe <jo...@domain.tld>" and just
outputs "John Doe".
I imagine something like: <bean:write name="address"
formatter="foo.bar.AddressFormat"/>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>