tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Update of "HowTo" by hotmaz
Date Fri, 14 May 2010 23:56:31 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "HowTo" page has been changed by hotmaz.
http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=89&rev2=90

--------------------------------------------------

            String propFile = "conf/application.properties";
            java.net.URL url = loader.getResource(propFile);
  	  try{prop.load(url.openStream());}catch(Exception e){Syste,.err.println("Could not load
configuration file: " + propFile);}
+      }
+ 
+      //....
+      // add your methods here. prop is filled with the content of conf/application.properties
+ 
+      // load the properties when class is accessed
+      static {
+         loadProperties();
       }
    }
  }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message