jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: datetime TAGlib -> FormatTag.java
Date Sat, 28 Apr 2001 09:31:48 GMT
From: "jonathan" <jb@jbingham.com>
> 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)?

Great idea - its such a pain checking for nulls all over the place. How
about something like

<i18n:formatString value="<%= something %>" defaultValue="N / A"/>

where the defaultValue is optional and defaults to "".

Though strictly speaking its not using any localisation - but it would make
sense to keep it with the other formatXXX tags.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message