Hi,

I like to know a way to read a property file the wicket way. Currently i'm
using the following code snippet but i get the
PackageResourceBlockedException.

/*.......................................*/
Properties properties = new Properties();
properties.load(PackageResource.get(ApplicationProperties.class,
    "app.properties").getResourceStream().getInputStream());
String propertyName = properties.getProperty(name);
propertyFile.close();
return propertyName;
/*.......................................*/

Is this the correct way to get property files using wicket. My
app.properties file and ApplicationProperties.class is in the same package.
I like to know a way to load property files which are stored in the same
package as the class file.

Thanks
tbt


-- 
View this message in context: 
http://www.nabble.com/property-file-tp16537257p16537257.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to