struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Natra, Uday" <UNa...@cooksys.com>
Subject RE: Override the presentation of html:errors
Date Wed, 02 May 2001 01:39:22 GMT
When U add Ur errors to the ActionErrors Collection in the perform() method
of the Action class, An object of type ActionErrors is saved in the request
with a key name "ERROR_KEY". There is a method on the ActionErrors class
called "get()" that returns a Iterator for a collection of ActionError
objects. You can use the Struts iterator tag to display the errors in Ur own
manner. Hope this helps.
 
Thanks,
Uday. 

-----Original Message-----
From: Jason Chaffee [mailto:JasonChaffee@metatv.com]
Sent: Tuesday, May 01, 2001 5:43 PM
To: 'struts-user@jakarta.apache.org'
Subject: RE: Override the presentation of html:errors


The best way to handle errors is to name them separatly and then access each
one indiviually in your jsp.  See the Java docs for more info on error
handling.  It covers this approach quite well.

-----Original Message-----
From: Jeff Trent [mailto:jtrent@structsoft.com]
Sent: Tuesday, May 01, 2001 1:36 PM
To: struts-user@jakarta.apache.org
Subject: Override the presentation of html:errors


Short of writing my own taglib (which I'd like to avoid if I can), how does
one iterate over the errors collection to present them in a different way.
Any examples would be helpful...
 
Thanks,
Jeff
 


Mime
View raw message