struts+spring+hibernate程序出错
Struts:HTTP Status 404 - Servlet action is not available
struts.cfg.xm文件
?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN " "http://struts.apache.org/dtds/struts-config_1_2.dtd ">
<struts-config>
<data-sources />
<form-beans >
<form-bean name= "adminloginForm " type= "org.apache.struts.validator.DynaValidatorForm ">
<form-property name= "username " type= "java.lang.String " />
<form-property name= "password " type= "java.lang.String " />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards >
</global-forwards>
<action-mappings >
<action
attribute= "adminloginForm "
input= "/adminlogin.jsp "
name= "adminloginForm "
path= "/adminlogin "
scope= "request "
type= "org.springframework.web.struts.DelegatingActionProxy ">
<forward name= "fail " path= "/adminlogin.jsp " />
<forward name= "success " path= "/adminmain.jsp " />
</action>
</action-mappings>
<message-resources parameter= "com.csu.struts.ApplicationResources " />
<plug-in className= "org.apache.struts.validator.ValidatorPlugIn ">
<set-property property= "pathnames " value= "/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml " />
</plug-in>
<plug-in className= "org.springframework.web.struts.ContextLoaderPlugIn ">
<set-property property= "contextConfigLocation " value= "/WEB-INF/applicationContext.xml " />
</plug-in>
</struts-config>
spring配置文件是
beans>
<bean id= "dataSource "
class= "org.springframework.jdbc.datasource.DriverManagerDataSource ">
<property name= "driverClassName ">
<value> com.mysql.jdbc.Driver </value>
</property>
<property name= "url ">
<value> jdbc:mysql://localhost:3306/mydata </value>
&l