in the function
 
public void doPost(HttpServletRequest req,HttpServletResponse res)
throws .....
{
 
}
 
Interfaces can't be instantiated.
HttpServletRequest and HttpServletResponse are both interfaces ....Right!
So how can we pass an object of these interfaces to the doPost method??
 
Also that HttpServletRequest extends ServletRequest . Since both of these are interfaces they have abstract methods which are just declared ..So where are all the
methods like getParameter(), getMethod() defined???
 
Please help me to solve this basic problem
 
Nimesh
 
 
 

Reply via email to