From: "Brian McGovern" <[EMAIL PROTECTED]>
> Can someone tell me how to iterate through a properties file in my JSP.
> I want to grab the keys and values for everythign within a certin
Blah.properties file
> in my class path and display on the page.

Here's part of a Factory class I use in my DAO layer:

         Properties props = new Properties();
         ClassLoader cl = UniSessionFactory.class.getClassLoader();
         InputStream input = cl.getResourceAsStream( propsFileName );
         props.load( input );

>From there, look at the JavaDoc for Properties:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html

-- 
Wendy Smoak



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to