Inside a servlet ,we call the method getParameter( ) to get the parameter value . This method belongs to 'ServletRequest' which is an INTERFACE . So my question is , since the methods of 'interface' have only declaration , where is the body defined? Where is the method getParameter() is implemented ???
Please help me in this regard.
Ashok Kumar Babu
posted 8 years ago
When a request is send to a servlet (either doGet or doPost) an instance of Type HttpServletRequest will be send as argument. Interface HttpServletRequest would be implemented by the container.