Web tier: servlets, JSP, Web frameworks: reading weblogic.properties file

  1. reading weblogic.properties file (1 messages)

    I want to read weblogic.properties file from my jsp. I am using weblogic 4.5.1 server. I will appreciate your help.If you have any code, please mail it to arun_dar at yahoo dot com
  2. reading weblogic.properties file[ Go to top ]

    Use this scriplet code -

            // Initialize your weblogic.properties filename here
            public static final WEBLOGIC_PROP_FILE = "weblogic.properties";
            Properties props = new Properties();
            FileInputStream in = null;
            try {
                in = new FileInputStream(WEBLOGIC_PROP_FILE);
            } finally {
                if (in != null) {
            // Now read the file using props.getProperty()