struts-config.xml中的配置
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<data-sources />
<form-beans >
<form-bean name="RegisterUserForm" type="com.lhcg.struts.actionform.RegisterUserForm" />
</form-beans> <global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="RegisterUserForm"
input="/pages/jsp/gongsiqingkuang.jsp"
name="RegisterUserForm"
path="/register"
scope="request"
type="com.lhcg.struts.action.RegisterUserAction">
<forward
name="success"
path="/pages/jsp/MyJsp.jsp"
contextRelative="true" />
</action>
</action-mappings> <message-resources parameter="com.lhcg.struts.ApplicationResources" /><plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/applicationContext.xml" /></plug-in>
</struts-config>在启动tomcat的时候报上述错误.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<data-sources />
<form-beans >
<form-bean name="RegisterUserForm" type="com.lhcg.struts.actionform.RegisterUserForm" />
</form-beans> <global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="RegisterUserForm"
input="/pages/jsp/gongsiqingkuang.jsp"
name="RegisterUserForm"
path="/register"
scope="request"
type="com.lhcg.struts.action.RegisterUserAction">
<forward
name="success"
path="/pages/jsp/MyJsp.jsp"
contextRelative="true" />
</action>
</action-mappings> <message-resources parameter="com.lhcg.struts.ApplicationResources" /><plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/applicationContext.xml" /></plug-in>
</struts-config>在启动tomcat的时候报上述错误.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货