2 Answers

0 votes

Servlets perform the following major tasks:

  • Read the explicit data sent by the clients (browsers). This includes an HTML form on a Web page or it could also come from an applet or a custom HTTP client program.
  • Read the implicit HTTP request data sent by the clients (browsers). This includes cookies, media types and compression schemes the browser understands, and so forth.
  • Process the data and generate the results. This process may require talking to a database,
  • Send the explicit data (i.e., the document) to the clients (browsers). This document can be sent in a variety of formats, including text (HTML or XML), binary (GIF images), Excel, etc.
answered Jun 20, 2016 by Nani
0 votes

Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server.

Using Servlets, you can collect input from users through web page forms, present records from a database or another source, and create web pages dynamically.

answered Feb 19 by muneshs16

Related questions

What are servlets filters?

Servlet Filters are Java classes that can be used in Servlet Programming for the following purposes:To intercept requests from a client before they access a resource at back end.To manipulate...

solved
java, android, jdbc, servlet 2 Answer 73 views asked Jun 30, 2016 in Java by RajaSekhar

What are Servlets?

Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI programs. Servlets have access to the entire family of...

solved
java, jdbc, servlet 2 Answer 71 views asked Jun 17, 2016 in Java by Estela