Bloom Lab
Pages
Home
Bloom Code Guidelines
Showing posts with label
Servlets
.
Show all posts
Showing posts with label
Servlets
.
Show all posts
Monday, August 3, 2015
Java Servlets
## Servlets A servlet is simply a class which responds to a particular type of network request - most commonly an HTTP request. Another words, servlets extend the capabilities of servers that host applications accessed by means of a request-response programming model. Basically servlets are usually used to implement web applications. Servlets provide *"Here is an HTTP request, write to this HTTP response"* interaction flow. There are various frameworks which operate on top of servlets *(e.g. Struts)*. Java Servlets are part of the Java EE. Servlets run inside a servlet container *(e.g. Tomcat, Jetty web servers)* which handle the networking side (e.g. parsing an HTTP request, connection handling etc). All servlets must implement the `Servlet` interface, which defines lifecycle methods. The `HttpServlet` class provides methods, such as `doGet` and `doPost`, for handling HTTP-specific services.
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)