问题描述
控制台2011-3-1513:38:24org.apache.catalina.core.StandardWrapperValveinvoke信息:Servletstrutsiscurrentlyunavailable--------------------------------http://localhost:8080/user/reg.do?method=regUI浏览器HTTPStatus404-ServletstrutsisnotavailabletypeStatusreportmessageServletstrutsisnotavailabledescriptionTherequestedresource(Servletstrutsisnotavailable)isnotavailable.ApacheTomcat/6.0.18--------------------------------------------------------web.xml<?xmlversion="1.0"encoding="UTF-8"?><web-appversion="2.5"xmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"><context-param><param-name>contextConfigLocation</param-name><param-value>classpath:beans.xml</param-value></context-param><!--对Spring容器进行实例化--><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><servlet><servlet-name>struts</servlet-name><servlet-class>org.apache.struts.action.ActionServlet</servlet-class><init-param><param-name>config</param-name><param-value>/WEB-INF/struts-config.xml</param-value></init-param></servlet><servlet-mapping><servlet-name>struts</servlet-name><url-pattern>*.do</url-pattern></servlet-mapping><welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list></web-app>====================================================================struts-config.xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstruts-configPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration1.3//EN""http://struts.apache.org/dtds/struts-config_1_3.dtd"><struts-config><form-beans><form-beanname="buyerForm"type="cn.itdos.web.formbean.user.BuyerForm"/></form-beans><action-mappings><actionpath="/user/reg"name="buyerForm"scope="request"validate="false"parameter="method"><forwardname="reg"path="/WEB-INF/page/user/userReg.jsp"/><forwardname="regFinish"path="/WEB-INF/page/user/regFinish.jsp"/><forwardname="checkuser"path="/WEB-INF/page/user/checkuser.jsp"/></action></action-mappings><controller><set-propertyproperty="processorClass"value="cn.itcast.web.action.privilege.PrivilegeRequestProcessor"/></controller></struts-config>========================================================publicActionForwardregUI(ActionMappingmapping,ActionFormform,HttpServletRequestrequest,HttpServletResponseresponse)throwsException{returnmapping.findForward("reg");}