String pKey ="";
Properties pisoProperties = new Properties();
pisoProperties.load(new FileInputStream("C:/yourpropertfile"));
for (Enumeration e = pisoProperties.keys() ; e.hasMoreElements() ;)
{
pKey = (String) e.nextElement();
System.out.println(pKey + " - " + pisoProperties.get(pKey) +
}
-----Original Message-----
From: Rajendran, Rajarajan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 10:18 AM
To: [EMAIL PROTECTED]
Subject: properties file to Hashtable
Hi,
I want to read a .properties file through a servlet and get the properties
and
set it to a Hashtable. Can anyone please help me out by sample code.
Thank you.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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