Greetings Carl,
I have question regarding the Question Bank ID 6. It marks these two options as correct answers. I understand the doGet part
doGet(HttpServletRequest request, HttpServletResponse response)
{
String name = request.getParameter("name");
...
but i am confused on this part. API says following for service method
public void service(ServletRequest req,
ServletResponse res)
throws ServletException,
java.io.IOException
So it is (ServletRequest, ServletResponse) not HttpServletRequest, HttpServletResponse). Can you elaborate on this a little bit?
service(HttpServletRequest request, HttpServletResponse response)
{
String name = request.getParameter("name");
...