Reading an XML file in WEB-INF with Bean
Posted on 2010-11-14
Hi there experts,
i have a short question:
I'm currently writing my own Web Application with Java and this Webapplication has its own configuration xml files. These files are under the WEB-INF folder, so only the Servlet or JSP can access it.
Now i want to write a Java Bean that reads this config-files and provides some getter functions...
The reason, why i want to write a bean is, because this config files should be accessed by many servlets and some JSPs.
How can i access the config files with a java bean?
and what would be the best way to parse the XMLs?
thx for your help and best regards!