How do I access an Init Parameter set in web.xml from a JavaBean?

Bozidar Dangubic

You must get the init-param from servlet and load it into the bean, either defining a set method or passing it into the constructor. The init-param tag is for init parameters for the servlets and JSP and not for JavaBeans. They have other ways to load parameters (such as properties files and things like that).

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact