Description
Java Servlet Technology resides at server side and it generates the dynamic web page, used to create a web application. Java Servlets Tutorial are programs that act as a middle layer between a request coming from a Web browser/HTTP client and databases or the applications on the HTTP server.Java Servlet can be defined in many ways, which depends on the context.
– A servlet is one of the technologies which is used to create the web application.
– A servlet is an API which provides many interfaces and classes including documentation.
– The servlet is an interface, which must be implemented for creating any servlet.
– The servlet is a class that extends the capabilities of the servers and responds to the incoming request.
– A servlet can respond to any type of requests.
– Servlet is a web component which is disposed on the server to create a dynamic web page.
– A servlet is called as an object. It receives a request and generates a response which is based on a request.
There are some important key points that must be known while programming of a servlet, such as a server, container, get and post request etc. The basic terms used in servlet areas:
• HTTP(Hypertext Transfer Protocol)
• HTTP Request Types
• Differences between getting and post method
• Server and distinction between web and application server
• Container
• Content Type
• Deployment
• XML introduction
Also, Java servlets can be generated automatically from JSP that is Java Server Pages by the JSP compiler. There are differences between Java servlets and JSP that is servlets typically enclosed HTML inside Java code, while JSP enclosed Java code in HTML.
To deploy and run the servlet, a Java servlet container (web container) must be used. The servlet container is actually the component of a web server which interacts with the servlets. The servlet/web container is responsible for managing the lifecycle of servlets, also mapping a URL to a particular servlet and assuring that the URL requester has the correct access rights.
(Duration:- 9h)