struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <Moh...@hclcomnet.co.in>
Subject ActionErrors.GLOBAL_ERROR
Date Sun, 02 Mar 2003 15:59:48 GMT
Hi,

       I want to show the ActionErrors.GLOBAL_ERROR only if other errors
like the following are not present.

		    errors.add("key", new ActionError("information"));
		    saveErrors( request, errors );

Now I am using code like this that occasionally fails

	protected boolean isErrorsPresent( HttpServletRequest request ){
        ActionErrors errors = ( ActionErrors )request.
			                             getAttribute(
Action.ERROR_KEY );
    return (errors == null) ? false : true;
    }

 What am I doing wrong ?

Thanks,
Mohan

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


Mime
View raw message