jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jonathan" ...@jbingham.com>
Subject RE: datetime TAGlib -> FormatTag.java
Date Fri, 27 Apr 2001 19:24:38 GMT
What about a formatString tag for formatting Strings using a
MessageFormat-like syntax, and for generating output other than "null" on
null-valued strings (another cause of time-consuming typing, since an empty
string is usually preferable for display to users)?


-----Original Message-----
From: James Strachan [mailto:james_strachan@yahoo.co.uk]
Sent: Friday, April 27, 2001 9:48 AM
To: jonathan; taglibs-dev@jakarta.apache.org
Subject: Re: datetime TAGlib -> FormatTag.java

>   This looks like great stuff!
>   Let's not forget localization, though. For international sites, the
> formatDate & formatNumber tags need another attribute:
>     locale="<% someLocale %>"
> DateFormat and NumberFormat both provide a constructor that takes a Locale
> as a parameter.


All the <i18n:format*> tags would take an optional locale property which
would allow an explicit locale to be specified. In cases where a locale is
not specified then it could be inferred from the current HttpServletRequest
or possibly via a parent tag.


View raw message