struts拦截器把后面带的参数如?name=123拦截掉了,怎么处理?
拦截器如下<interceptors>
<interceptor class="com.access.action.AuthorityInterceptor"
name="authority" />
<interceptor-stack name="mydefault">
<interceptor-ref name="authority" />
<interceptor-ref name="defaultStack" />

</interceptor-stack>
</interceptors>
拦截器如下
public String intercept(ActionInvocation invocation) throws Exception {
// 取得请求相关的ActionContext实例
ActionContext ctx = invocation.getInvocationContext();
Map session = ctx.getSession();
// 取出名为user的session属性
String admin = (String) session.get("admin");

if (admin!= null) {
return invocation.invoke();
}
// 没有登陆,将服务器提示设置成一个HttpServletRequest属性
//ActionSupport action = (ActionSupport)invocation.getAction();
//action.addActionError("要继续操作,请先登陆"); return Action.LOGIN;
}