08 2012 档案
摘要:【方法1】使用Struts2 Aware拦截器 这种方法需要Action类实现相应的拦截器接口。如我们要获得HttpServletResponse对象,需要实现org.apache.struts2.interceptor.ServletResponseAware接口,代码如下:【方法2】使用RequestAware拦截器 这种方法和第1种方法类似。动作类需要实现一个org.apache.struts2.interceptor.RequestAware接口。所不同的 是RequestAware将获得一个com.opensymphony.xwork2.util.OgnlValueStack对象,.
阅读全文

浙公网安备 33010602011771号