thanks.  I'm trying to figure out how to setup correctly for
localizition, especially where you have cases like

Product Name

versus (excuse my spanish)

Nombre de Producto

thanks again,

dan



> -----Original Message-----
> From: Eric Rasmussen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 13, 2001 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: can someone post an example of <bean:message> using
> parametric replacement
>
>
> ok, let me try again.
>
> in ApplicationResources.properties:
> error.field.required=Field {0} is required.
>
> in Action class; perform() method:
> ActionErrors errors = new ActionErrors();
> ...
> try {
>   [parse field]
>   [if field is required, but is not found] throw new
> ParseException("[field
> name]");
> } catch(ParseException pe) {
>   errors.add("field", new ActionError("error.field.required",
> pe.getMessage());
>   saveErrors(request, errors);
>   return mapping.findForward("failure");
> }
>
> The {0} will be replaced by the value returned by 'e.getMessage()', so if
> [field name] is Address, the error message should read 'Field Address is
> required'.
>
> Hope this helps (more than my last response),
>     - eric
>
> ----- Original Message -----
> From: "Daniel Toms" <[EMAIL PROTECTED]>
> To: "Struts-User" <[EMAIL PROTECTED]>
> Sent: Friday, April 13, 2001 2:59 PM
> Subject: can someone post an example of <bean:message> using parametric
> replacement
>
>
> > Hi,
> >
> > Can someone post a concrete example of a <bean:message ...> tag
> > using parametric replacements and also post the corresponding lines
> > from the properties file.  I am having some difficulty understanding it.
> >
> > thanks,
> >
> > dan
> >
> >
> >
>

Reply via email to