<%@page pageEncoding="UTF-8" import="java.io.IOException" import="java.util.HashMap" import="java.util.Map.Entry" import="com.tootsville.WebUtil" import="org.starhope.appius.test.ConnectionDebug" import="org.starhope.appius.game.AppiusClaudiusCaecus" %><% /** * Error message list */ String url = ""; final final HashMap storeValues = new HashMap (); try { if(null==storeValues.get("state")&&null==storeValues.get("locality")&&null==storeValues.get("province")){ storeValues.put("state",""); } url = WebUtil.processCC(session, request, err, storeValues); } catch (Exception e) { err.put ("process", "Sorry, an unexpected error has occurred. Please try again later."); StringBuilder sBuilder = new StringBuilder (); sBuilder.append ("-=- STORED VALUES -=-"); for (Entry entry : storeValues.entrySet ()) { sBuilder.append (entry.getKey ()); sBuilder.append (" = "); sBuilder.append (entry.getValue ()); sBuilder.append ("\n"); } Exception exception = new Exception (sBuilder.toString (), e); AppiusClaudiusCaecus.reportBug ("Exception in Process CC", exception); } session.setAttribute ("storeValues", storeValues); // ----------- Error handling: Place this on every page. // ----------- These errors are read and displayed by Header.jsp if (err.size () > 0) { /** * If there was any errors caught, return to last page with * the error message. */ session.setAttribute ("sError", err); WebUtil.log ("Exception in processing cc: " + err.toString ()); } try { ConnectionDebug.dumpOpenConnections (); response.sendRedirect (url); return; } catch (IOException e) { e.printStackTrace(); %> Click here to continue ... <% } %>