• Action.error_key Deprecated

    ActionErrors (Struts) (Struts forum at JavaRanch) – Using Jakarta Struts: I am trying to display errors that occur in my Action classes in a jsp page. I though I could just create an ActionErrors colle

    I’m having trouble logging in to my wordpress site: http://watchfamilyguy.us/wp-login.php As you can see it gives me this: Parse error: syntax error, unexpected $end in /home/canad30/public_html/watchfamilyguy/wp-login.php on line 333

    Action.ERROR_KEY is deprecated as of 1.1. Use Globals.ERROR_KEY instead. David From: Angie Lin < … 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)

    Used for organization of child RegistryValue elements or to create a registry key (and optionally remove it during uninstallation) . … Action: Enumeration: The Action attribute has been deprecated.

    First, the key method of our Action class, perform() has been deprecated. The reason for doing this was because the perform() … The second change was to the Action.ERROR_KEY constant. It was decided to move the constants into their own class called Globals.

    Deprecated since version 2.7: … An option’s action determines what optparse does when it encounters this option on the command-line. … This should not be a problem for Python’s garbage collector, …

    As far as I can tell from the debugger output all the errors are added under org.apache.struts.action.ERROR key like this: org.apache.struts.action.ERROR={email =[errors … ActionErrors is NOT deprecated in struts 1.2 but is advised to be changed to ActionMessages for ‘proper …

    (2 replies) Is it now recommended to use members of Global like in Global.ERROR_KEY instead of Action.ERROR_KEY *even* in classes that extend Action? I know these members have not been marked as deprecated, but the note seems to indecate that they are preferred: “Global manifest constants for …