如何在struts 1.x中的重定向url下面添加标题?
ActionRedirect redirect = new ActionRedirect(mapping.findForward(forwardPage));
redirect.addParameter("method", forwardPage);
redirect.addParameter("username", "user");
redirect.addParameter("password", "PWD");
redirect.addParameter("forwardPage", "success");
return redirect;
答案 0 :(得分:1)
您可以使用response
对象添加标头。例如
response.setHeader("Pragma", "no-cache");