struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hns <hardik_...@yahoo.com>
Subject Re: about DAO
Date Mon, 03 Mar 2008 10:42:27 GMT

i got one file dbconnmannager.java for pooling  but it has some error
i know its nt an s2 question but still wait 4 ans 

i put in one package connpool
it gives error at specific point


it can not load properties file 
--------------------------------------------------------------------------------------------
    
    /**
     * Loads properties and initializes the instance with its values.
     */
    private void init() {
    	
    	
    	InputStream is = getClass().getResourceAsStream("/db.properties");
        Properties dbProps = new Properties();
        try {
            dbProps.load(is);
        }
        catch (Exception e) {
            System.err.println("Can't read the properties file. " +
                "Make sure db.properties is in the CLASSPATH");
            return;
        }
--------------------------------------------------------------------------------------------

is there any rule to properties file 


-- 
View this message in context: http://www.nabble.com/about-DAO-tp15798783p15799947.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message