Tuesday, September 29, 2009

loading the values form a properties file

Properties pro = new Properties();
InputStream in = WelcomeAction.class
.getResourceAsStream("/IBLConstants.properties");
pro.load(in);
for (int i = 0; i < pro.size(); i++) {
if (pro.containsKey(roleType)) {
System.out.println(pro.getProperty(roleType));

}
}

0 comments:

Post a Comment