You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Nichols <dh...@hotmail.com> on 2002/05/13 16:44:53 UTC

Dynamic control of errors.header and errors.footer

All -

Is there a way to dynamically control the contents of the errors.header and 
errors.footer properties in the ApplicationResources.properties file?

What I would like to be able to do is display both error and informational 
messages on the page via the <html:errors/> tag. I like the unordered list 
paradigm for validation error messages. However I would like to display 
informational or status messages without the validation heading, or perhaps 
with an entirely different heading.

If anyone has suggestions or examples and would like to share them I would 
appreciate it.

Thanks
Mark



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Dynamic control of errors.header and errors.footer

Posted by Ted Husted <hu...@apache.org>.
The errors.header and errors.footer come out of the Application
Resources. This is in application scope, and really can't be changed on
a request by request basis. 

Struts 1.1 offers a set of message tags that can do exactly what you
want. These were first introduced in the Struts Validator, so for Struts
1.0 you might be able to load them from an older version of that
<http://home.earthlink.net/~dwinterfeldt/>. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Mark Nichols wrote:
> 
> All -
> 
> Is there a way to dynamically control the contents of the errors.header and
> errors.footer properties in the ApplicationResources.properties file?
> 
> What I would like to be able to do is display both error and informational
> messages on the page via the <html:errors/> tag. I like the unordered list
> paradigm for validation error messages. However I would like to display
> informational or status messages without the validation heading, or perhaps
> with an entirely different heading.
> 
> If anyone has suggestions or examples and would like to share them I would
> appreciate it.
> 
> Thanks
> Mark
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>