On Monday 15 August 2005 00:31, Howard Lewis Ship wrote:
> I'd bet if you dug down through the exception stack, you'd find the
> true culprit, somewhere inside getPageMenuNames(). Probably an NPE.
Yes - it is.
What I am trying to do is read the .properties file of the application that is
using my component. I am trying to create a method to access it via the
following @InjectObject annotation.
@InjectObject("infrastructure:applicationPropertySource")
public abstract IPropertySource getAppPropertySource();
I then call
getAppPropertySource().getPropertyValue("menu-items");
Using debug, I can see that I get the correct property source for the
application, but that the pointer to its properties map is Null.
I assume this probably means that although I have created a properties file,
sitting in the WEB-INF directory the framework hasn't found it and initialise
the property holder for the application.
How do I do that?
--
Alan Chandler
http://www.chandlerfamily.org.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]