Struts 2まとめ



Struts2   
 .Struts2    
  **    struts2           ,          struts1    .
  ** Struts2   struts1   ,           ,            .        WebWork         .
  ** Struts2      struts1    ,     webWork    .
  ** struts2  WebWork    ,          ,                 
  **       struts1   WebWork      ,              
 . Apache Struts2         Java EE WEB  .                 
 . Struts2   Struts1    
  ** Action :
  - Struts1    Action          . Struts1                      
  - Struts2 Action         Action   ,         ,             .
  - Struts2       ActionSupport           ; Action       ,    execute    POJO
        Struts2   Action   
  **     :
  - Struts1 Action                 ,     Action              .        
Struts1 Action      ,              . Action               
  - Struts2 Action               ,           
  ** Servlet  :
  - Struts1 Action     Servlet API,     Action    HttpServletRequest   HttpServletResponse      execute()   
  - Struts2 Action       ,   Action           .       Struts2 Action           request   response
  ,                 HttpServletRequest   HttpServletResponse     
  **    :
  - Struts1 Action             execute       Servlet API (         ).        
Struts TestCase --       Struts1       (     )
  - Struts2 Action        ,     ,        "    "             
  **     :
  - Struts1 Action   ActionForm       .    ActionForm         .     JavaBean     
ActionForm ,               .    Bean (DynaBeans)          ActionForm  ,  ,           (  )      JavaBean
       JavaBean)  
  - Struts2 Action      Action          ,              . Action       web    
taglibs   . Struts2     ActionForm   
  **      :
  - Struts1     JSTL ,     JSTL EL .  EL          ,               
  - Struts2      JSTL ,                     -- "Object Graph Notation Language" (OGNL)
  **        (view) :
  - Struts1      JSP              
  - Struts2    "ValueStack"   ,  taglib                (view)        
ValueStack                             (view)  
  **       :
  - Struts1 ActionForm        String    . Struts1   Commons-Beanutils        
        ,              
  - Struts2   OGNL        .                
  **    :
  - Struts1     ActioNForm   validate         ,     Commons Validator       .
              ,        
  - Struts2      validate     XWork          . XWork                       
    chain      
  ** Action       :
  - Struts1             Request Processors (    );          Action              
  - Struts2           (Interceptor Stacks)      Action          .
             Action     

 . Eclipse     Struts2
 ** commons-logging-1.0.4.jar  
  Struts2      
 ** freemarker-2.3.8.jar   
  Struts2  UI      
 ** ognl-2.6.11.jar  
         
 ** struts2-core.2.0.11.jar   
  Struts      
 ** xwork-2.0.4.jar   
  XWork  ,Struts2      
 .   
  **1    Struts2            
  **2    Struts2      
  **3   web.xml     FilterDispatcher
  **4    DAO  
  **5    action
  **6          
  **7    struts.xml
 . Struts2         
  **1.    action           
  **2.             
  **3.    ModelDriver