struts1.3 & struts 1.2 RequestProcessor区别
struts1.2.9 ==============================
ActionServlet:
请求dopost或doget调用: protected void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ModuleUtils.getInstance().selectModule(request, getServletContext()); ModuleConfig config = getModuleConfig(request); RequestProcessor processor = getProcessorForModule(config); if (processor == null) { processor = getRequestProcessor(config); }//在1.2.9中使用RequestProcessor 实例 processor.process(request, response); } //第一次请求到来时调用 protected synchronized RequestProcessor getRequestProcessor(ModuleConfig config) throws ServletException { RequestProcessor processor = this.getProcessorForModule(config); if (processor == null) { try { processor = (RequestProcessor) RequestUtils.applicationInstance( config.getControllerConfig().getProcessorClass()); 。。。。} getControllerConfig().freeze(); public ControllerConfig getControllerConfig() { if (this.controllerConfig == null) { this.controllerConfig = new ControllerConfig(); } return (this.controllerConfig); }