Can non-servlet class (helper class) access web.xml recource?
In my project, a servlet invoke another helper class, which needs to extract information from web.xml's context-param.
The helper class extends a class which provides all the db connection information. To make deployment easier, I want to move all the DB connection information to web.xml, but how to make web.xml accessable to a non-servlet class?
Thanks
In my project, a servlet invoke another helper class, which needs to extract information from web.xml's context-param.
The helper class extends a class which provides all the db connection information. To make deployment easier, I want to move all the DB connection information to web.xml, but how to make web.xml accessable to a non-servlet class?
Thanks