http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionErrors.html#GLOBAL_ERROR
ActionErrors.GLOBAL_ERROR is the property name you add an error into an ActionErrors object with when you're not associating the error with a specific property.
Globals.ERROR_KEY is the request attribute name an ActionErrors object is stored under for the <html:errors> tag to use.
David
From: Angie Lin <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Globals.ERROR_KEY versus ActionErrors.GLOBAL_ERROR
Date: Tue, 14 Jan 2003 15:42:17 -0800
So, what is ActionErrors.GLOBAL_ERROR used for? Is it deprecated in beta3?
David Graham wrote:
If you upgrade to beta 3 you'll see that it does use Globals.ERROR_KEY. Use Globabls.ERROR_KEY for your action's errors. Note that the property you add into an ActionErrors object doesn't even need to be present on the form. It's just a name that you can use with the <html:errors> tag to lookup an error message for a "property".--
David
From: Angie Lin <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Globals.ERROR_KEY versus ActionErrors.GLOBAL_ERROR
Date: Tue, 14 Jan 2003 15:00:05 -0800
Ok, so when should Globals.ERROR_KEY be used over ActionErrors.GLOBAL_ERROR or vice versa?
Everywhere I've read states to use ActionErrors.GLOBAL_KEY for errors not specific to a property. However, declarative exception handling (org.apache.struts.action.ExceptionHandler) uses Action.ERROR_KEY (note it does not use Globals.ERROR_KEY) instead.
If anybody can shed any light for me, I would appreciate it. It's not clear what the distinction is between the two.
Thanks,
Angie
David Graham wrote:
Action.ERROR_KEY is deprecated as of 1.1. Use Globals.ERROR_KEY instead.--
David
From: Angie Lin <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Action.ERROR_KEY versus ActionErrors.GLOBAL_ERROR
Date: Tue, 14 Jan 2003 14:44:15 -0800
When should one be used over the other? (1.1b2, weblogic6.1)
I started off by doing all my exception handling within my Actions and setting generic errors with ActionErrors.GLOBAL_ERROR.
However, I'm migrating to declarative exceptions and the default ExceptionHandler uses Action.ERROR_KEY.
I can easily modify all my jsp's to look for Action.ERROR_KEY instead, but I'm curious when one should be used over the other?
Thanks,
--
Angie Lin
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Angie Lin
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Angie Lin
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

