For one, inside the static init block, you will not have access to the ServletConfig object, which available inside the init() method.
Regards Sanjeev -----Original Message----- From: Chetan Wagle [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 28, 2002 5:52 PM To: [EMAIL PROTECTED] Subject: Init method in the sevlet versus static init block Hi everybody, Can anyone let me have some pros and cons of initializing static variables in a servlet in a static initializer block versus doing it in the init method ? Rgds, Chetan Wagle [EMAIL PROTECTED] ___________________________________________________________________________ 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 ___________________________________________________________________________ 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
