thanks, david
i will give that a try. in the meantime, any more suggestions from others
would be sincerely appreciated.
----- Original Message -----
From: "David M. Karr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 4:56 AM
Subject: Re: Help: ActionError - <html:errors /> does not expand the {0}
placeholder
> >>>>> "w" == w i l l i a m b o y d <w> writes:
>
> w> Sorry! Youve selected too many choices for {0}. (what
happened to my
> w> apostrophe in "You've" ?)
>
> w> here is the appropriate line from my resource bundle:
>
> w> error.prefs.limit=Sorry! You've selected too many choices for
{0}.
>
> w> here is a snip from my form's validate method:
> w> ...
> w> ActionErrors errors = new ActionErrors();
> w> ...
> w> if ( isTooManyPrefs ) {
> w> ActionError prefMusicError = new ActionError(
"error.prefs.limit",
> w> "Preferred Music" );
> w> errors.add( "prefMusic", prefMusicError );
>
> If I were you, I would do two things:
>
> 1. Take your exact message property and plug it into the "MessageFormat"
class
> and see if the same thing happens.
>
> 2. Step through this code in your debugger, and see what happens when the
> message gets formatted.
>
> --
> ===================================================================
> David M. Karr ; Java/J2EE/XML/Unix/C++
> [EMAIL PROTECTED] ; SCJP; SCWCD
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]