Re: How to access properties files outside of Wicket components?

2008-06-02 Thread Erik van Oosten
2008 10:32 PM > To: users@wicket.apache.org > Subject: Re: How to access properties files outside of Wicket > components? > > You should the other getResource*() methods, those on Class: > http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResourceAs > Stream(java.lang.S

RE: How to access properties files outside of Wicket components?

2008-06-02 Thread Michael Mehrle
ce bundles outside of Wicket components? Michael -Original Message- From: Erik van Oosten [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 10:32 PM To: users@wicket.apache.org Subject: Re: How to access properties files outside of Wicket components? You should the other getResource*

Re: How to access properties files outside of Wicket components?

2008-06-01 Thread Erik van Oosten
You should the other getResource*() methods, those on Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) Regards, Erik. Michael Mehrle wrote: Right now I had to resort to the solution below, but I would very much like to know the standard

RE: How to access properties files outside of Wicket components?

2008-06-01 Thread Michael Mehrle
Right now I had to resort to the solution below, but I would very much like to know the standard way of doing this, as this required me to place my properties file into the src/main/resources folder: static { try { properties.load(Thread.currentThread().getContextClassLoad