- A component of web server that facilitates loading, executing and initializing servlets in standalone (without a web server) or by running on another host
- Examples of servlet container are tomcat, Glassfish, etc.
- A web server uses Hyper Text Transfer Protocol (HTTP) to communicate with end users, which are generally web browsers
- A Java-based web server communicates through HTTP messages by using two main classes, java.net.Socket and java.net.ServerSocket
- Servlet container manages large number of servlets ; hence, it can handle many requests
- For each Http method (Get, Post), HttpServlet class has a corresponding method (doGet(), doPost(), doPut())
- Servlet container calls the service() method of servlet and provides an instance of ServletRequest and ServletResponse that enables in identifying remote user, parameters of HTTP POST
05.Secure Coding Practices for Authentication and Authorization