I have a context-param in web.xml. I need to access value of this variable from ServletContext into a POJO (no passing HttpServletRequest or anything). Basically this POJO is not aware of any servletcontext or container. How do I get value of this context variable into POJO.
Joined: Nov 09, 2000
Passing it to your POJO in an Action via a setter method would be one way to accomplish this.