Struts2如何让页面不跳转!!!
public String updateRole() throws Exception{
userBiz.updateRole(roles,user.getUserId());
HttpServletResponse response = ServletActionContext.getResponse();
response.setCharacterEncoding("GBK");
response.getWriter().print("<script type=text/javascript>alert('权限分配成功!');</script>");
return null;
}
各位,给小弟看看。。这个方法在Action方法执行后。。。我Return Null 让它不跳转,保留在页面。。。为何执行后会页面一片空白了。。。有解决之道吗????