You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ML...@abusinessware.com on 2007/04/18 09:42:40 UTC

[s2]How to customize the errors prefix, suffix, ... ?

Hi all,

I tried to customize the errors.prefix, suffix, header and footer, but 
they are not taken into account.

How to do in Struts 2 ?

I just put this in my package.properties :
errors.footer=<tr>
errors.header=</tr>
errors.prefix=<td>
errors.suffix=</td>

Thanks,

Regards,

Michaƫl.

Re: [s2]How to customize the errors prefix, suffix, ... ?

Posted by Laurie Harper <la...@holoweb.net>.
MLENEVEUT@abusinessware.com wrote:
> Hi all,
> 
> I tried to customize the errors.prefix, suffix, header and footer, but 
> they are not taken into account.
> 
> How to do in Struts 2 ?
> 
> I just put this in my package.properties :
> errors.footer=<tr>
> errors.header=</tr>
> errors.prefix=<td>
> errors.suffix=</td>

Not taken into account by what? Those look like the properties 
associated with Struts 1's old-style message handling tags. In S2 the 
formatting of errors and other messages is controlled by the template theme.

L.


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