struts 2.11 의 chain 과 store

2282 단어 Ajax
s2sh  result       type="chain" ,    action   request  ,
            input    action
 
    action       action actionError,actionMessage   !


  store   ,     redirecAction ,  action    actionMessage,actionError
  <s:debug></debug>                 
 

 

Store action Message Error

  <interceptor-stack name="myStack">

 

            <interceptor-ref name="defaultStack" /> 

           <interceptor-ref name="store">  

                 <param name="operationMode">AUTOMATIC</param>  

           </interceptor-ref> 

</interceptor-stack>

 

   defaultStack , action  <result name="input" type="redirectAction">updatePUser?user.id=${user.id}</result> action

 

   defaultStack , action ,<result name="input" type="redirectAction">updatePUser?user.id=${user.id}</result> action, fieldError。

 

, , , , :prepare ,

 

			<interceptor-stack name="myStack">
				<interceptor-ref name="auth"></interceptor-ref>
				<interceptor-ref name="stack_noprepare"></interceptor-ref>
			</interceptor-stack>
			
			
			<interceptor-stack name="fullStack">
				<interceptor-ref name="prepare"></interceptor-ref>
				<interceptor-ref name="myStack"></interceptor-ref>
				
			</interceptor-stack>

 ajax 기술 사용
 

좋은 웹페이지 즐겨찾기