Thanks. I figured I know I can get it to work in servlet code but im hoping to avoid that.
I know that single properties are made available by the framework in taglibs like this <bean:message key="error.application_error" />. Ther has to be a simple way to just get ALL the properties in a particular bundle directly from the jsp itself. Right? -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 5:07 PM To: Struts Users Mailing List Subject: [OT] Re: Iterate through blah.properties file 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]