servlet container calls the init() method to create the
instance of the servlet.
The instance is created for the servlet in which the init()
method is implemented.
The ServletContainer is used default zero argument
constructor to create servlet instance then after it calls
init(ServletConfig cg) it internally calls init()for
initialization puposes.
Plz guys init() is not used for creation of servlet instance
The init() method is only used to initialize an existing
servlet instance before it starts providing service to
requests, it's never used for creating a servlet instance.
I'm searching for the method which creates the servlet
instace. But I can assure that we can't create a servlet
instace, it's done by the container.
After The successfull parsing of web.xml container will find
the particular class name which is mapped in web.xml and calls
class.forName(classname).newInstance() method.Then calls
init(ServletConfig config) of GenericServlet for
initializing the instance of the servlet.
1.HttpSession
2.Hidden fields
3.URL Rewriting these primitive type of Session
maintainance.
What is the other type of process that could help to
maintain the Session?
pls Explain the process if u know?
hi....
i have problem in running of servlet.
i am using Tomcat server in my pc..
The problem is when i am click on strat it will display like
below
FAIL - Application at context path /first could not be started..
How i can slove the problem..
help plz