struts2默认配置文件 struts-default.xml 研究

今天工作不忙,研究了一下strtus2的默认配置文件 struts-default.xml ,其中的默认的拦截器,包括其中的拦截器栈。

因为struts2的配置文件struts.xml 中如果不配置拦截器的话,默认是basoc拦截器。如果一个action配拦截器的话,需要

需要加上另外的拦截器才能,有属性封装的特性,也就是能用ORGL的对象图导航语言。

现在做的项目中用 都是这个:

   
    
     AUTOMATIC
    

    
   

如果用一个action配置自己定义拦截器的话,需要配置上"snzoStack"拦截器,才能用struts的自动封装的功能。

如下是struts-default.xml的拦截器的详细注释:



       
          
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           

           
           
               
               
               
               
               
               
                    dojo/..*,^struts/..*
               

               
           

           
           
               
               
               
           

           
           
               
               
                    input,back,cancel
               

               
               
           

           
           
               
               
           

           
           
               
               
           

           
           
               
               
           

           
           
               
               
           

           
           
               
               
               
               
                    dojo/..*,^struts/..*
               

               
               
               
               
               
               
               
               
               
                    dojo/..*,^struts/..*
               

               
               
                    input,back,cancel
               

               
                    input,back,cancel
               

           

           
           
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
                  dojo/..*,^struts/..*
               

               
               
                    input,back,cancel,browse
               

               
                    input,back,cancel,browse
               

           

           
           
               
           

           
           
               
                    input,back,cancel
               

               
               
                    input,back,cancel
               

           

      

       

       
   

你可能感兴趣的:(j2ee,struts,interceptor,class,action,validation,workflow)