Elements of JAVA Servlets
Servlets are Java classes, developed in concordance to a well-defined structure. When installed and configured in a server that implements a Servlet Container, Servlets can handle requests received from web clients, such as browsers, for example Internet Explorer and Mozilla Firefox.
When receiving a request, a servlet can catch parameters from this request, execute any process inherent to a Java class and then send back a HTML page.
Servlets are composed by the elements below:
- SERVLET-name: it’s where servlet name is.
- SERVLET-class: the name of the class, with the information about the package, in case it exists.
- init-param: this is for servlet initialization parameter.
- load-on-startup: it contains the load sequence of the servlet in relation to the others application servlets. It’s important to remember that minor integers are loaded first (positive integer indicates the load sequence of the application servlet). In case the element doesn’t exist or the value isn’t a positive integer, the servlet container will decide which servlet will be loaded first.
| 2.9 |
Leave a Comment
If you would like to make a comment, please fill out the form below.

admin




