• 拦截器



    	<!-- 拦截器 -->
    	<package name="myPackage" namespace="/" extends="struts-default">
    		<interceptors>
    			<interceptor name="LoginInterceptor"
    				class="biz.cld.framework.interceptor.LoginInterceptor" />
    			<interceptor-stack name="myStack">
    				<interceptor-ref name="defaultStack" />
    				 <!--调用自己定义拦截器 -->
    				<interceptor-ref name="LoginInterceptor" />
    			</interceptor-stack>
    		</interceptors>
    		<default-interceptor-ref name="myStack" />
    		<global-results>
    			<result name="login">/EC/user/userLogin.jsp</result>
    		</global-results>
    	</package>



    <?xml version="1.0" encoding="UTF-8" ?

    > <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="User" extends="myPackage" namespace="/EC">



  • 相关阅读:
    jsp转向
    什么是 XDoclet?
    tomcat中的几点配置说明
    mysql5问题
    POJ 3734 Blocks
    POJ 2409 Let it Bead
    HDU 1171 Big Event in HDU
    POJ 3046 Ant Counting
    HDU 2082 找单词
    POJ 1286 Necklace of Beads
  • 原文地址:https://www.cnblogs.com/twodog/p/12140775.html
Copyright © 2020-2023  润新知