Chinaunix首页 | 论坛 | 博客
  • 博客访问: 28739398
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2010-06-09 23:01:28

DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "" >
<struts>

    

    
<include file="struts-default.xml">include>
    
    
    

    
<package name="com.kay.struts2" extends="struts-default" namespace="/test">
        
<interceptors>
            

            
<interceptor name="timer" class="com.kay.timer">interceptor>
            
<interceptor name="logger" class="com.kay.logger">interceptor>
            

            
<interceptor-stack name="mystack">
                
<interceptor-ref name="timer">interceptor-ref>
                
<interceptor-ref name="logger">interceptor-ref>
            
interceptor-stack>
        
interceptors>
        
        

        
<default-interceptor-ref name="mystack">default-interceptor-ref>
        
        
        

        
<global-results>
            
<result name="input">/error.jspresult>
        
global-results>
        
        

        
<action name="hello" class="com.kay.struts2.Action.LoginAction">
            

            
<interceptor-ref name="timer">interceptor-ref>
        
            

         
<result name="success" type="dispatcher">/talk.jspresult>
         

         
<param name="url">param>
        
action>
    
package>
struts>

个人感觉 这个包就跟类包的概念是一样的。用来组织Action与拦截器用的!

阅读(766) | 评论(0) | 转发(0) |
0

上一篇:python类专用方法

下一篇:学习笔记01

给主人留下些什么吧!~~