You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/25 21:04:45 UTC

[jira] Closed: (STR-968) Allow to use any subclass of java.text.Format

     [ 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 <jo...@domain.tld>" 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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org