String token = ServletActionContext.getRequest().getParameter("token");
if(token == null || !token.equals(ServletActionContext.getRequest().getSession().getAttribute("token"))) {
try {
ServletActionContext.getResponse().sendRedirect(ServletActionContext.getRequest().getContextPath() +"/admin/warn.jsp");
return;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
String token = ServletActionContext.getRequest().getParameter("token");
if(token == null || !token.equals(ServletActionContext.getRequest().getSession().getAttribute("token"))) {
return "warn";
}
var token = "${session.token}";
<input type="hidden" name="token" value="${session.token }"/>
if(token == null || !token.equals(ServletActionContext.getRequest().getSession().getAttribute("token"))) {
try {
ServletActionContext.getResponse().sendRedirect(ServletActionContext.getRequest().getContextPath() +"/admin/warn.jsp");
return;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
String token = ServletActionContext.getRequest().getParameter("token");
if(token == null || !token.equals(ServletActionContext.getRequest().getSession().getAttribute("token"))) {
return "warn";
}
var token = "${session.token}";
<input type="hidden" name="token" value="${session.token }"/>