Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
Thanks for the clarification, Erik. Erik Weber wrote: I think you want ServletContext.getInitParameter here. That is used with the "context-param" element (global to your web app). ServletConfig.getInitParameter is used with the "init-param" element (specific to one Servlet). In addition to the

Re: how do i get context-param

2004-11-24 Thread Erik Weber
I think you want ServletContext.getInitParameter here. That is used with the "context-param" element (global to your web app). ServletConfig.getInitParameter is used with the "init-param" element (specific to one Servlet). In addition to the JavaDocs, you should read the Servlet specification,

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
MyServlet extends HttpServlet { public void init (ServletConfig config) { String paramValue = config.getInitParameter("myContextParamName"); } } Personally, I have found the JavaDocs invaluable for this kind of stuff; you can find the Servlet 2.4 Javadocs online at http://jakarta.apache.o