@Result(name = "fail", type = "redirectAction", location = "gotologin.do?loginUrl=${loginUrl}&errorstr=${errorstr}") //Action请求转发以及参数
拦截器传递参数
ActionContext ac = invocation.getInvocationContext();
ValueStack stack = ac.getValueStack();
stack.setValue("errorstr", "nologin");// 用于登陆页面显示错误信息
stack.setValue("loginUrl", invocation.getInvocationContext().getName() + ".do");// 保存此次操作,登陆成功后,将直接跳转到此操作