ActionServlet in-depth discussion --1

xiaoxiao2021-03-06  113

Java.lang.Object | - javax.servlet.GenericServlet | - javax.servlet.http.httpservlet | - Org.apache.struts.Action.ActionServletstruts provides a default version of ActionServlet class, you can Inherit this class, cover some of them to achieve your special treatment needs. ActionServlet inherits with javax.servlet.http.httpservlet, so it doesn't matter in nature it and an ordinary servlet, you can look at it as a servlet, just in which the function is complete. ActionServlet mainly completes the following features: mapping a URI from the client to a corresponding Action class

If this Action class is called for the first time, then instantiate a cache if the corresponding ACTIONFORM is specified in the configuration file (Struts-config.xml), then capture the data fill the formBean call this action The class's Perform () method, a reference to ActionMApping, corresponding ActionForm, and HTTPSERVLETREQUEST, HTTPSERVLETRESPONSE objects transmitted by the container to the ActionServlet. Easy version of the ActionServlet reads the following initialization parameters from the configuration file Web.xml:

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

New Post(0)