struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Balmer <bbal...@peapod.com>
Subject Re: ActionErrors problem...
Date Tue, 18 Nov 2003 12:56:35 GMT
This may be a copy/paste issue, but this shouldn't even compile as it 
looks here.  You are missing a ) at the end.


Dominique de Waleffe wrote:

> I have this in my code:
>    errors.add(ActionErrors.GLOBAL_ERROR,
>           new 
> ActionError("error.key.invalid-value.dummy","<keyname>","<value>","<expected>");

>
>
> I have this in application.properties:
> error.key.invalid-value.dummy=DUMMY: key:{0} Value:{1} expected:{2}
>
> However,  using <html:errors/> in my page, the only thing that gets 
> displayed is:
> DUMMY: key: Value: expected:
>
> i.e. the replacement values I give are swallowed.
>
> Any idea on what I am doing wrong? I tried calling new 
> ActionError(..,a) where a is an Object[] with the values I want. This 
> did not work either.
>
> I imagine I must be missing something obvious...
>
> Thanks for any hint...
> D.
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message