Thanks Amin.
But I still have a query.

I use 

in my ActionForm:
    ActionErrors errors = new ActionErrors();
    errors.add("persDet1", new ActionError("error.option.required"));

and then in the jsp file:
    <html:errors property="persDet1" bundle="persDet"/>

where persDet.properties exists and has error.option.required key in it.
Is this all fine so far?

The problem is I get an error message:
Can not find message resource under persDet key

Do you know what's going on?

Best Regards,
Yakov
----- Original Message ----- 
From: "Mohd Amin Mohd Din" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 1:24 PM
Subject: RE: <html:errors>


> Refers to the properties file. Since errors message key is a constant,
> therefore it does not need to refer to a specific line in the properties
> file.
> 
> Amin
> 
> -----Original Message-----
> From: Yakov Belov [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 10:54 AM
> To: Struts Users Mailing List
> Subject: <html:errors>
> 
> Dear All,
> 
> I have a question about <html:errors> tag. There is an optional
> attribute,
> "bundle" as in <html:errors bundle=<something>/>
> 
> My question is how do I use bundle attribute; is it a reference to a
> properties file or reference to a line in the default properties file?
> 
> Thank you in advance,
> Yakov Belov
> 
> 
> 
> ---------------------------------------------------------------------
> 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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to