could someone please explain this java code for me. i find it really hard to understand.
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String firstName = request.getParameter("firstName").toString();
processRequest(request, response);
}
so request is an object of the interface class HttpServletRequest which got some empty methods.
but how can it return any data if the method getParameter() is empty.
and also, i cant find getParameter() in the HttpServletRequest interface. But shouldn´t it be one, cause request is declared as a HttpServletRequest and thus own all its methods and fields?
and which class is toString() coming from.