<%@ page import="java.lang.StringBuffer" %> <%@ page import="java.util.HashMap" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <% String tipMsgKey = (String)request.getAttribute(com.forgon.tools.AppKeys.TipMsgKey); if (StringUtils.isNotEmpty(tipMsgKey)) { HashMap messageMap = new HashMap(); messageMap.put("tipMessage", tipMsgKey); request.setAttribute("messageMap", messageMap); } StringBuffer scriptBuffer = new StringBuffer(); scriptBuffer.append("window.focus();"); if (StringUtils.isNotEmpty(tipMsgKey)) { scriptBuffer.append("if (tipMessage != '') {alert(tipMessage);}"); } scriptBuffer.append("history.go(-2);"); request.setAttribute("toRunScripts", scriptBuffer.toString()); %> <%@ include file="/common/JsHelper.jsp" %>