> I was wonderting how to specify Initialization Parameters for a JSP.
If your JSP is a part of a J2EE web-app then you can specify that JSP's
init-params in the web.xml
deployment descriptor. You can read these init params in jspInit() method
which is analogus to init() of
servlet using config implicit variable.
e.g. web.xml
<web-app>
...
<servlet>
<servlet-name>
MyJSP
</servlet-name>
<jsp-file>
MyJsp.jsp
</jsp-file>
<init-param>
<param-name>
Locale
</param-name>
<param-value>
en_US
</param-value>
</init-param>
</servlet>
</web-app>
public void jspInit() {
String value = config.getInitParameter("Locale");
}
Hope it helps
-Shiraz Wasim Zaidi
===========================================================================
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