I am writing a small sample app to demonstrate a menu component to my boss. I want to populate this menu using an xml file. Later I may change to using a database. I wrote a pojo that is supposed to read the xml doc describing the menu and parse its contents into java beans for use by the component. The problem I am having is how to give the pojo access to the xml file. I could have the page that contains the component inject the service, inject the xml asset and pass the asset’s input stream to the service, but I want to keep the details of how things work from my pages and components. There must be some way to inject the file into the pojo using HiveMind, but I am not sure where to look. I want also want to know if I can specify the xml file location relative to the web context.
Thanks for your help, Rob -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006