java - Accessing ServletContext in any class -


i trying access property file webapps/web-inf/ folder implemented in util class.
util class don't have servletcontext. plus property file used test cases when server stopped.
how can access servletcontext in java class?


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -