prashant chindhade wrote:The constructor is called by the container simply to create a POJO (plain old java object).
init method is the method which is invoked when servlet in called and it adds values to the servlet context so its a very much difference between constructor and init method...
regs
Prashant
prashant chindhade wrote:its a first method of servlet's life cycle so it must be executed every time servlet is invoked..
regs
Prashant
munjal upadhyay wrote:
Matthew Brown wrote:Just once, when the servlet is initialised.
but servlet is initilized each and every time , the requests comes.
so its indirectly mean that init() must be called for each and every request that calls the Servlet.
Paul Anilprem wrote:Enthuware has released JWeb+ V6, a simulator for the new JSP/Servlet certification. Please see the details here!
HTH.
Paul.
Vipul Gulhane wrote:What are servlet object?
is there any implicit objects like in jsp...
mallikarjun don wrote:May be this will help You
request.setAttribute(string,Object);