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)?
cheers,
jonathan
-----Original Message-----
From: James Strachan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 9:48 AM
To: jonathan; [EMAIL PROTECTED]
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.
Yes.
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.
James