My problem is creating a message with an argument for example:
Date {0} is not valid.
I create:
msg.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.badDate"));
My Question : how can I add the argument for {0} from resource bundle to 
this statement, as validator framewoek does? 
Regards,
arash

On 6/21/05, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> 
> ActionMessage is constructed with message key, not with message text - so
> you don't have to access resources directly.
> Or, maybe I have not understood your question?
> 
> ----- Original Message -----
> From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> To: <user@struts.apache.org>
> Sent: Tuesday, June 21, 2005 11:44 AM
> Subject: Accessing message resource from in validate method
> 
> 
> Hi,
> In the validate method of ActionForm, I need to access the resource 
> messages
> to pass the message as arg to ActionMessage constructor.
> Could anybody help me?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to