W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

init() called everytime

From: Bi, Xiaolian <Xiaolian_Bi@tri.sbc.com>
Date: Mon, 12 Apr 1999 12:24:31 -0400 (EDT)
Message-ID: <6C5FB3C08FCBD1118EE600805FEA9CC201E1A450@trimail.tri.sbc.com>
To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Sorry to repost the question. I got some response but still didn't solve my

My init() seems to be called every time when the servlet is accessed. And in
fact from the printout of Jigsaw it looks like the servlet is loaded every
time. One response said that if the serlvet is used without the .class
extension, it should be okay. But I have been using the serlvet without the
.classs extension all along.

 I am using the automatic installation, ie my servlet MyServlet.class is
under WWW/servlet/com/xxx/xxx . I am accessing the serlvet with
com.xxx.xxx.xxx is the package name. 

It's really crucial to my application that the init() is only called once
when the servlet is loaded (should only be loaded once as I understand it).
Can someone please tell me what I am doing wrong?

Xiaolian Bi
Received on Monday, 12 April 1999 12:36:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:34 UTC