thread.run();
thread.start();
# Statement s = connection.createStatement();
#
# s.executeQuery (sql);
#
# rs = s.getResultSet();
#
#
#
# String bid = rs.getString("bus_id");
Anuj Batra wrote:
function logout() {
<%session.inValidate();%>
}
munjal upadhyay wrote:
jeya velan wrote:When the container receives the first request, It will create an instance of the servlet.
Then it will call the init method which does the intializtion process.
Then it starts to service the request.
Then for the subsequent requests, A thread will be created per request which executes the service method in its own stack.
At any time there will be only one instance of a particular servlet in the memory per JVM.
If you preload your servlet, than creating and initializing will be completed at the server start up time itself.
the initialization and init() is different
initilization :- the constructor part of the servlet class is done , and the ordinary object of that class is created
init() :- the ordinary object --> servlet object , and servlet object has all the writed like accessing the container data etc...
I had read this in headFirst servlet and Jsp .
so
your statement :- Then it will call the init method which does the intializtion process.
is not conviscing.
will you please please rewite it
thanks in advanced.