防止重复提交token

public class TokenAction extends BaseAction{

public String execute()

{

HttpSession session =request.getSession();

session.setAttribute("addNodetags",Sercurity.getSecureRandom(32));

session.setAttribute("addUsertags",Sercurity.getSercureRansom(32));

session.setAttribute("impertTasktags",Security.getSercureRandom(32));

String page =request.getParameter("page"));

return page;

}






}

你可能感兴趣的:(java)