Understanding the servlet

Step 1: Various web applications are deployed on tomcat

Step 2: Hit the URL

Step 3: tomcat will create the request and response objects

Step 4: After reading the URL : tomcat identifies the path like : "http://localhost:8080/SimpleServletProject/SimpleServletPath" and loads the corresponding servlet defined using annotation or web.xml.

Step 5: Servlet will receive both request and response objects.

Resources :

Jsp and servlets Book

Last updated

Was this helpful?