Getting started with servlets
Remarks#
A Servlet is a Java application programming interface (API) running on the server machine which can intercept requests made by the client and can generate/send a response accordingly. A well-known example is the HttpServlet
which provides methods to hook on HTTP requests using the popular HTTP methods such as GET
and POST
. You can configure HttpServlet
s to listen on a certain HTTP URL pattern, which is configurable in web.xml
, or more recently with Java EE 6, with @WebServlet
annotation. Many Java EE web frameworks are built on top of servlets, such as JSF, JAX-RS, Spring MVC, Struts, Wicket, etcetera. See also https://stackoverflow.com/questions/2095397/what-is-the-difference-between-jsf-servlet-and-jsp/
Versions#
Version | Release Date |
---|---|
3.1 | 2013-05-21 |
3.0 | 2009-12-01 |
2.5 | 2005-09-01 |
2.4 | 2003-11-01 |
2.3 | 2001-08-01 |
2.2 | 1999-08-01 |
2.1 | 1998-11-01 |
2.0 | 1998-06-01 |
1.0 | 1997-06-01 |
Installation
Content has been moved back to good ‘ol Servlets wiki page
Hello World with doGet
Content has been moved back to good ‘ol Servlets wiki page
Hello World with doPost
Content has been moved back to good ‘ol Servlets wiki page
Coding style and recommendations
Content has been moved back to good ‘ol Servlets wiki page