Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

reading XML file in servlet

843834Aug 19 2004 — edited Aug 19 2004
hey guys,

i need a couple of ideas < or one workable one > on how to read an XML application configuration file within a servlet.
It is a application configuration file therefore i personally feel that i should be able to somehow keep it in my WEB-INF directory.

About the only things i have been able to come up with are....
Could put a external file systems filename in web.xml and then read the context parm.
or
Could put a external file systems filename as a property of the JVM and then read it as a System.getProperty("XMLFileName")
or
???

Please fill in the ?? with the preferred approach.

Thanks in advance for your wisdom..

jim
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2004
Added on Aug 19 2004
1 comment
154 views