In the Servlets that are translated from jsps , I notice that there is _jspservice() method but no doGet() and doPost() methods ? how does the servlet differentiate the GET and the POST methods ?
In the Servlets that are translated from jsps , I notice that there is
Share
There is no real difference in handling of
GETandPOSTrequests in JSP. If you are interested in what method was used, you can callgetMethod()to find out.The way JSPs work is the same as if you overrode
service(ServletRequest, ServletResponse)in a Servlet instead ofdoGet/doPost.