1.web.xml
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
org.apache.struts.action.ActionServlet
org.apache.struts.action.ActionServlet
<!-- 对会员进行过滤 -->
<!--
This is the description of my J2EE component
This is the display name of my J2EE component
com.hb.shop.servlet.UsernameValidate
-->
<!--
-->
<!--
com.google.code.kaptcha.servlet.KaptchaServlet
-->
<!-- 对会员进行登陆过滤(ypf) -->
<!--
com.hb.shop.help.userLoginFilter
-->
<!-- 对会员进行登陆过滤(ypf) -->
com.hb.shop.web.form.SetEncodingActionServlet
com.hb.shop.web.action.ViewCheckFilter
com.hb.shop.tool.userLoginFilter
2.struts-config.xml
http://struts.apache.org/dtds/struts-config_1_2.dtd">
<!-- cy -->
<!--
-->
path="/adminLogin" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
path="/addType" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
type="org.springframework.web.struts.DelegatingActionProxy">
type="org.springframework.web.struts.DelegatingActionProxy">
<!-- cy -->
<!-- ypf -->
type="org.springframework.web.struts.DelegatingActionProxy" />
type="org.springframework.web.struts.DelegatingActionProxy"
validate="false" />
type="com.hb.shop.web.action.ValidateAction" validate="false" />
input="/reg.jsp"
name="regForm"
path="/reg"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
parameter="add"
type="org.springframework.web.struts.DelegatingActionProxy" />
parameter="delete"
type="org.springframework.web.struts.DelegatingActionProxy" />
parameter="addNum"
type="org.springframework.web.struts.DelegatingActionProxy" />
parameter="reduceNum"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="balance.jsp"
name="deliverAddressInfoForm"
path="/deliverAddressInfo"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/balance.jsp"
name="submitOrderForm"
path="/submitOrder"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/member/editMyInfo.jsp"
name="memberInfoForm"
path="/memberInfo"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/member/emailEdit.jsp"
name="emailInfoForm"
path="/emailInfo"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/member/nameEdit.jsp"
name="nameInfoForm"
path="/nameInfo"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
input="/member/passwordEdit.jsp"
name="passwordInfoForm"
path="/passwordInfo"
scope="request"
type="com.hb.shop.web.action.PasswordInfoAction" />
input="/test.jsp"
name="testForm"
path="/test"
scope="request"
type="shop.web.action.TestAction" />
<!-- ypf -->
3.spring配置文件:applicationContext.xml
http://www.springframework.org/dtd/spring-beans.dtd">
<!--注入BEAN-->
org.hibernate.dialect.Oracle9Dialect
<!-- cy -->
<!-- cy -->
<!-- ypf -->
<!--
singleton="true" lazy-init="default" autowire="default"
dependency-check="default">
-->
autowire="default" dependency-check="default">
singleton="true" lazy-init="default" autowire="default"
dependency-check="default">
singleton="true" lazy-init="default" autowire="default"
dependency-check="default">
<!--ypf-->
autowire="default" dependency-check="default">
<!-- /nameInfo com.hb.shop.web.action.NameInfoAction-->
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
autowire="default" dependency-check="default">
abstract="false" singleton="true" lazy-init="default"
autowire="default" dependency-check="default">
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9474419/viewspace-473075/ ,如需转载,请注明出处,否则将追究法律责任。