Hello friends,
I am having 1 doubt regarding
servlets and
jsp.
the doubt is about the Interfaces in Servlet API and HttpServlet API.
suppose if I am having an HTML form having 2 fields, Username and Password.
I will capture those values in the servlet using
String Username = request.getParameter("Username")
and Password using
String password = request.getParameter("Password")
as we know, request is HttpServletRequest which is an Interface and since it is an interface, all the methods are unimplemented abstract methods, am I right?
and those methods need to be implemented somewhere in some classes?
can anyone help me to find the implementation of those methods?
and if implementation is not provided, how those methods provide the desired functionality?
and if the container provides the implementation, how does it do that? Which class inside the container provide the implementation of those interfaces?
Please help me out for this problem.
Help is always appreciated,
Thanks and Regards,
-Pankaj