better to place .properties file along with .class file (evenif it is in .jar file), and to use getResourceAsStream(String propertyFileName). By this, access to .properties file will not be PATH dependent. hope this will help -prem
----- Original Message ----- From: "Tony Keshikku" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 7:09 AM Subject: What's the best way to access my resources ??? Hi there, I'm currently working on JSP, one of my JSPs get POP3 username and password from my resources(let's say username and password of POP3 is in the file /home/user1/pop3.properties) and use those info to retrieve emails from the POP3... Why I put information of POP3 in properties file is of course that I can change the information without recompiling. But I got problems on "/home/usr1/pop3.properties". That was literal... I put the whole PATH in the code and compiled !! Now I'm moving to new server, and unfortunately my home directry is changed ...gotta change the PATH info and recompile. So I wanna know for my future, In this case, How should've I set PATH in the code that easily modified even though my environment is changed. Thank you tony ========================= 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
