----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Sorry, of course 'p.getProperty("some_property");'
> Another approach would be to user properties. The filename of the
> properties would be specified when starting jserv with the option
> -D, for example
> 'java -Dmy_properties=/home/deller/java/props.properties org.apache.jserv.JServ'
> You could then load the properties as usual, first opening a
> FileInputStream to the properties file like this:
> 
> FileInputStream fis = new FileInputStream(System.getProperty("my_properties"));
> Properties p = new Properties();
> p.load(fis);
> g.getProperty("some_property");


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to