[JAVA] Servlet

Servlet

Technology for creating server-side programs Create a serverlet class and execute it on the AP server It is executed by the request from the browser, the result is output in HTML, and the AP server responds to the browser.

doGet () method

Method executed when Servlet class is requested

HttpServletRequest Instance with information and functionality about the request received from the browser

HttpServletResponse Instance with information and functionality about the response sent from the server

Content-Type header

URL

Java


http://<server name>/<Application name>/<URL pattern>

Set with @WebServlet ("/ URL pattern")

Recommended Posts

Servlet
Servlet learning
insert servlet
update servlet
Servlet movement
[Java] Servlet filter
[Servlet] Basic method
[Servlet] Listeners and filters
[Java] Servlet filter
About [servlet] [JSP] [tomcat]
Spring Boot Servlet mapping
Java Servlet LifeCycle Example
What is a Servlet?