后台处理
前台处理error.jsp
if (!isTokenValid(request)) {
request.setAttribute("showError", "已经保存,请不要刷新页面或重复提交!");
return mapping.findForward(Constants.ERROR);
}
前台处理error.jsp
<%@ page contentType="text/html;charset=UTF-8" %>
<script>
alert("${showError}");
history.back();
</script>