[ http://issues.apache.org/struts/browse/STR-968?page=all ] David Evans closed STR-968: ---------------------------
Resolution: Fixed > Allow <bean:write/> to use any subclass of java.text.Format > ----------------------------------------------------------- > > Key: STR-968 > URL: http://issues.apache.org/struts/browse/STR-968 > Project: Struts Action 1 > Type: Improvement > Components: Taglibs > Versions: Nightly Build > Environment: Operating System: All > Platform: All > Reporter: William A. McArthur, Jr > Priority: Minor > Fix For: 1.2 Family > Attachments: FormatWriteTag.java, FormatWriteTag.java > > 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 <[EMAIL PROTECTED]>" and just > outputs "John Doe". > I imagine something like: <bean:write name="address" > formatter="foo.bar.AddressFormat"/> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]