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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to