hello all,

I am trying to use a mail.properties file kept in /web-inf/mail.properties
and being accessed using:

                Properties props = new Properties();
                FileInputStream fi = new FileInputStream("web-inf/mail.properties");
                props.load( fi );
                fi.close();

                System.out.println( "SMTP Host is " + props.getProperty("smtp_host") );
                System.out.println( "Notifications will be sent FROM " +
props.getProperty("from_address") );

now this works ok .. until i put the Java class in its package folder --
thats like

        com.ail.java.enterprise.smarttrack.web.beans.mail.MailerBean

Now -- the bean stops seeing /web-inf/mail.properties file ..
FileNotFoundException !! Is there anyway i can specify the fullpath of the
file. i also believe there was a function that gives me the actual folder
represented by the context root -- i cant remember which one !


thankx in advance ..

Cheerio !

Mayuresh Kadu
--------------
HomePages -
http://www.mayureshonline.com
http://javabeginners.8m.com

[ Quote of the Week ]
"Progress lies not in enhancing what is,
but in advancing toward what will be."

-Kahlil Gibran,
"A Handful of Sand on the Shore"

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to