Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 55714 invoked from network); 2 Mar 2003 16:03:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Mar 2003 16:03:01 -0000 Received: (qmail 3738 invoked by uid 97); 2 Mar 2003 16:04:40 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 3731 invoked from network); 2 Mar 2003 16:04:40 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 2 Mar 2003 16:04:40 -0000 Received: (qmail 53447 invoked by uid 500); 2 Mar 2003 16:02:42 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 53428 invoked from network); 2 Mar 2003 16:02:41 -0000 Received: from unknown (HELO ho-gs1.hclcomnet.co.in) (203.200.107.140) by daedalus.apache.org with SMTP; 2 Mar 2003 16:02:41 -0000 Received: by HO-MS1 with Internet Mail Service (5.5.2653.19) id <1KVPSL3J>; Sun, 2 Mar 2003 21:29:51 +0530 Message-ID: <341F8F7FCD8AD5118FD300306E06BB6503461BE9@HO-MS1> From: Mohan Radhakrishnan To: 'Struts Users Mailing List' Subject: ActionErrors.GLOBAL_ERROR Date: Sun, 2 Mar 2003 21:29:48 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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