You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <Mo...@hclcomnet.co.in> on 2003/03/02 16:59:48 UTC

ActionErrors.GLOBAL_ERROR

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