I know you can specify header and footer in the prop file, but what if different pages have different needs in terms of displaying errors. E.g., In some cases its a list and in others I want sentences strung together with no header.

Ted Husted

The message tag in the nightly build offers more flexibility

This might also be available in the Struts Validator library

The other alternative is leave the errors header and footer blank, so you can add the HTML yourself.

To test for the presence of error messages in Struts 1.0.x, you can use

<logic:present name="org.apache.struts.action.ERROR">

And then wrap (or not wrap) the messages with markup

To retrieve individual messages, you can specify the property in the html:error tag.

But, the new messages tag really does a much better job of this.

HTH -Ted