you can use the additonal code here
PageContext.getConfig() will return the config object then you can use the
getInitParameter.
Regards
Ramesh Kesavanarayanan
Electronic Data Systems
Steeple Reach,
25, Cathedral Road,
91-44-811 3801 to 15 ext :2186
91-44-233 0380 (res)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-----Original Message-----
From: Fletcher, Joseph [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 3:58 AM
To: [EMAIL PROTECTED]
Subject: Re: init method in JSP
I've looked but can't find how to implement getInitParameter() from
jspInit().
I tried doing the following and got an error that the variable config is not
found:
<%!
public void jspInit()
{
String value = (String)config.getInitParameter("whatever");
// more code...
}
%>
I'm assuming this error means the implicit config object is not created yet.
I saw something in the JspPage Interface,
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/jsp/JspPage.h
tml#jspInit(),
about using getServletConfig() but I haven't been able to get it to work.
Thanks.
-- Joe
-----Original Message-----
From: Rosario Samanez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: init method in JSP
yes
<%
public void jspInit() {
//Source
}%>
-----Mensaje original-----
De: Yesudason Paulraj [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles 3 de enero de 2001 19:52
Para: [EMAIL PROTECTED]
Asunto: init method in JSP
Dear all,
Can we implement init method ( as in servlet) in JSP ?
Thanks in advance.
Regards
Yesudason P
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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