struts2配置拦截器栈要包含默认拦截器defaultStack,否则参数取不到
<DIV>配置拦截器栈</DIV><DIV> </DIV>
<DIV> </DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#999999 cellSpacing=0 cellPadding=0 width="95%" bgColor=#f1f1f1 border=1>
<TBODY>
<TR>
<TD>
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"><CODE><SPAN style="COLOR: #000000"> <SPAN style="COLOR: #0000cc"><</SPAN>interceptors<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>interceptor name<SPAN style="COLOR: #0000cc">=</SPAN><SPAN style="COLOR: #ff00ff">"sessionout"</SPAN> class<SPAN style="COLOR: #0000cc">=</SPAN><SPAN style="COLOR: #ff00ff">"com.yunnan.taikang.interceptor.SessionInterceptor"</SPAN> <SPAN style="COLOR: #0000cc">/</SPAN><SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>interceptor-stack name<SPAN style="COLOR: #0000cc">=</SPAN><SPAN style="COLOR: #ff00ff">"interceptorstack"</SPAN><SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>interceptor-ref name<SPAN style="COLOR: #0000cc">=</SPAN><SPAN style="COLOR: #ff00ff">"defaultStack"</SPAN> <SPAN style="COLOR: #0000cc">/</SPAN><SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN>interceptor-ref name<SPAN style="COLOR: #0000cc">=</SPAN><SPAN style="COLOR: #ff00ff">"sessionout"</SPAN> <SPAN style="COLOR: #0000cc">/</SPAN><SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>interceptor-stack<SPAN style="COLOR: #0000cc">></SPAN><BR> <SPAN style="COLOR: #0000cc"><</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>interceptors<SPAN style="COLOR: #0000cc">></SPAN></SPAN></CODE></P></TD></TR></TBODY></TABLE>
<P><BR> </P>
页:
[1]