Hi Erik,
> Also, how do you experts handle the issue of localizable messages
> involving a count, as in
>
> There are {0} messages waiting.
>
> If {0} is zero, I'd like it to read
>
> There are 0 messages waiting.
>
> If {0} is one, I'd like it to read
>
> There is 1 message waiting.
>
> If {0} is two or greater, I'd like it to read
>
> There are n messages waiting.
>
> Do I *have* to break down and use a scriplet just to pick the right
> message from the bundle, one for n=1 and one for the other cases? Are
> there going to be problems with that approach in other languages (I
> would think so)? Should I be constructing this particular piece of text
> in the preceding Action class, and passing it as a session or request
> attribute?
Message formatting goes through java.text.MessageFormat calls. You gain
access to all the formatting power of messages resources, like conditional
formats...
Instead of a cut and paste from the javadoc, have a look at
http://java.sun.com/j2se/1.3/docs/api/java/text/MessageFormat.html where
there's an example that you can apply to your problem. And perhaps you'll be
able to solve the first one, too.
Pierre M�tras