I am little confused about the various methods implementations.
Actually, I was Learning Servlet and JSP and I found many methods like
request.getSession();
response.getWriter();
and many more............
so please, can any one tell me where(In which class) the implementation of methods(getSession(), getWriter(), etc) are present ?
Thanks in advance, freinds.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2329
posted
0
Some class that implements the HttpServletRequest or ServletResponse interface, respectively. Which class that is depends on the servlet container you're using; it doesn't make a difference to the servlet developer.
What is the name of those Classes???
Does Container creates its own class???
when does those classes get loaded to execute the function definition ???
please reply,
Thanks Tim.
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1503
posted
0
The servlet container is responsible for providing the implementation of those classes. They are loaded/executed at appropriate times in the life cycle of the servlet.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Bear Bibeault
Author and opinionated walrus
Marshal