Package: javax.servlet.* |
Product: JSDK |
Release: 1.0 |
Related Links: |
General
General
General
General
General
|
Comment: |
if (props == null) { try { props = new java.util.Properties(); props.load(new java.io.FileInputStream("servlet.properties")); } catch (java.io.FileNotFoundException fnf) { props = null; res.sendError( HttpServletResponse.SC_NOT_FOUND, "Filename not found: " + fnf.getMessage()); return; } catch (java.io.IOException ioe) { props = null; res.sendError( HttpServletResponse.SC_NOT_FOUND, "IOError: " + ioe.getMessage()); return; } for ( java.util.Enumeration e = props.propertyNames(); e.hasMoreElements();) { String param = (String) e.nextElement(); System.out.println( "" + param + "=" + props.getProperty( param ) ); } } location = (String) props.get("servlet.bronservlet.initArgs"); |