Note

protected void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException

Called by the server to allow the Servlet to handle GET requests

req-An object containing requests made by the client to the Servlet res-An object containing the response that the Servlet sent to the client

In short, when the browser (client) asks the server for some request (such as trying to transition the screen), the http server (Apache)? Calls this method Also called when the server sends a response (such as the information on the next page) to the client It feels like the JVM has decided to call public static void main (String [] args)?

The doGet method mainly describes the process to output the contents requested by the client. The doPost method is mainly used when data is sent from the client.

Recommended Posts

Note
Note
[Note] Dockerfile
StringBuilder Note
Note: Installing SDKMAN
Rails Credentials Note
[Note] About nil
[Note] SQLite related
Firebase Authentication Note
[Note] Rails error list
Java abstract modifier [Note]
[Java] Internal Iterator Note
[Note] Methods ending with?
Spring Cloud Netflix Note
Note: Ubuntu installation location
Java JUnit brief note
[java] Java SE 8 Silver Note
Android 8.0 --Wi-Fi Aware Note
[Note] Java: String search
[Note] Java: String survey
[Note] Rails3 routing confirmation
My Study Note (Java)
java: Add date [Note]
# 3 [Note] do ~ while statement