Servlet request-response cycle

  • User sends HTTP request to the server using a browser.
  • Server processes the request (your servlet or JSP is called).
  • Your servlet or JSP produces a response which normally consists of an HTML page.
  • The server sends the response back to the browser.