For the ServletConfig, the getInitParameter() returns the value of the
parameter you want to initialize for a single servlet.

FOr the ServletContext, that method returns the value of a parameter which
will be used in the wide context (all the servlets in the same context).

Kindly Regards,

Justin Pham

>From: "Choi Jong Myung(SS)" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: getInitParameter() methods.
>Date: Sat, 27 May 2000 16:27:47 +0900
>
>Hello.
>There are two getInitParameter() mathods in the servlet package.
>One id the method of ServletConfig interface, and the other is
>the method of ServletContext interface.
>
>What is the difference ? I think they work almost same way except
>in web application.
>
>Thanks in advance.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to