Action.Perform in struts1.0 & action.execute in struts1.1

xiaoxiao2021-03-06  22

In Struts 1.0, request handling logic is coded in Action.perform ();. However, Action.perform () throws only IOException and SevletException To facilitate the new declarative exception handling, the request handling method needs to throw Exception, the superclass of all The CHECKED Exceptions. Therefore, to Both Maintain Backward Compatibility and Facilitate Declarative Exception Handling, Action.Perform () is now Deprecated in Favor of action.execute ().

转载请注明原文地址:https://www.9cbs.com/read-66125.html

New Post(0)