You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jon.Ridgway" <Jo...@upco.co.uk> on 2001/12/05 10:39:09 UTC

RE: ActionError Header/Foorters - can Global vs Non-Global be dif ferentiated

Hi Greg,

You could try using the standard Struts ActionError's mechanism for
validation errors. Use the standard J2EE exception handling mechanism
errors.

To do this add error-page entries to your web.xml; one for exceptions and
another for warnings. Then through two types of corresponding user-defined
exceptions from your code.

Jon.

-----Original Message-----
From: Greg Callaghan [mailto:greg_callaghan@hotmail.com] 
Sent: 05 December 2001 07:26
To: struts-user@jakarta.apache.org
Subject: ActionError Header/Foorters - can Global vs Non-Global be
differentiated

Hi,

Noting that one may use an ActionError, and struts ErrorTag to display both 
GLOBAL and validation errors (non-GLOBAL).

Currently the header/footer text I use is focused on the non-Global errors 
(ie validation errors in a form).  Is there a way with struts to throw the 
errors back such that it would be more like the following -:

* Global Error1 (eg for resource not available error)
* Global Error1

<Error.Header> eg correct validation errors in form before proceeding
* Validation Error 1 - date should be in dd/mm/yyyy format
* Validation Error 2
<Error.Footer>

Regards
Greg



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
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>