<%@ page import="com.glo.elabra.*, java.util.*, java.text.*, java.io.*, com.glo.gtutil.*, com.glo.db.*" language="java" session="false" errorPage="/error.jsp" %><% String pwd = ""; boolean errorFlag = false; boolean displayFlag = false; String xFile = ""; CtrlObj ctrlObj = null; ctrlwork ctrl = null; String pLoc = "start"; String masterPWord = ""; try { ctrlObj = new CtrlObj("munibase", "offering", false); ctrl = ctrlObj.getCtrlwork(); //------------------------------------- // Home directory -- from ini file //------------------------------------- StringBuffer curFile = new StringBuffer(); curFile.append(ctrl.constVal("MUNIBASE_HOME")); //------------------------------------- // Get request URI to find subdir //------------------------------------- String requestURI = request.getRequestURI(); curFile.append(requestURI); ctrl.debugLog("CUR File='" + curFile.toString() + "'", 5); //------------------------------------- // Make a File for this script //------------------------------------- File scriptFile = new File(curFile.toString()); //------------------------------------- // Pass file name from ini file //------------------------------------- File parentDir = scriptFile.getParentFile(); File passFile = new File(parentDir, ctrl.constVal("PASSFILENAME")); ctrl.debugLog("PassFile='" + passFile.getAbsolutePath() + "'", 5); //------------------------------------- // Read the pass file //------------------------------------- if (!passFile.exists()) { ctrl.log("Password file does not exist. No password required."); } else { BufferedReader br = new BufferedReader( new FileReader(passFile)); String pLine = ""; while((pLine = br.readLine()) != null) { if (!ctrlwork.stringIsEmpty(pLine)) { masterPWord = new String(pLine); } } br.close(); ctrl.debugLog("masterPWord='" + masterPWord + "'", 5); } pLoc = "S2"; //------------------------------------ // Get the name of the doc file, xFile //------------------------------------ File workdir = new File(parentDir, "doc"); File[] fnames = workdir.listFiles(); pLoc = "S3"; for (int i=0; i<% */ response.sendRedirect(xFile); return; } else { %> Elabra Munibase elabra Debt Issuance Management <% if (errorFlag) { %> <% } else { %> <% } %>
Please type the password & press Enter.
<% } } catch (Throwable th) { Exception x = new Exception(th.toString() + " [" + pLoc + "]"); throw x; } finally { if (ctrlObj != null) ctrlObj.close(); } %>