> Is there a way to programatically read the context params specified in
> the web.xml file under the WEB-INF directory.

You can access it from servlet and JSP.

For e.g.

<context-param>
  <param-name>idleTimeout</param-name>
  <param-value>30</param-value>
</context-param>

>From Servlet:
String idleTimeoutValue =
getServletContext().getInitParameter("idleTimeout");

>From JSP:
<% String idleTimeoutValue = application.getInitParameter("idleTimeout"); %>

-Shiraz

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to