- Views: 8
- Report Article
- Articles
- Reference & Education
- Languages
Java Certification Course In Pune Teaches About Servlet Techology
Posted: Aug 29, 2017
For creating the web application that stays at server side and produces dynamic web page is called Servlet technology used for creating web application. For more information join the Java certification course in Pune.
Due to Java language servlet technology is robust and scalable. Before CGI (Common Gateway Interface) Servlet scripting language was popular and has a server side programming language. There are lots of advantages with respect to this technology. Disadvantages are also discussed below.
In the servlet API there are lots of interfaces and classes like Servletm HttpServlet, GenericServlet, ServletRequest, ServletResponse etc.
What is a Servlet?
There are lots of ways servlet can be described depending on the context.
For creating web application, servlet technology is used.
For providing lots of interfaces and classes including documentations, Servlet is an API.
For implementing or for creating any servlet, servlet is an interface.
For extending the capabilities, servlet is class of the servers and respond to the incoming request for responding various requests
It is a web component deployed on the server to make dynamic web page.
You can access web application from the web. Web components like Servlet, Filter, JSP, etc are used to make web application. In web server the web components typically execute and respond to HTTP request.
CGI (Common Gateway Interface)The webserver is enabled by the CGI technology for calling an external program and pass HTTP request information to the request placed in the process of external program. There is a new process for each requests.
Disadvantages of CGIIn CGI technology there are lots of problems
- If the client number increases it takes lots of time for sending the response.
- A process is started and web server is limited to start processes for each request.
- Platform dependent language is used by it example C, C++, perl.
Advantages of Servlet
CGI has lots of advantages over servlet. Threads are created by the web container for multiple requests handling to the servlet. There are lots of benefits of Processes as a common area is shared by them, lightweight, communication cost between the threads are low. Here are the basic benefits of servlets:
- Better performance: For each request and not process a thread is created.
- Portability: Java language is used by it.
- Robust: JVM manages the servlets so we do not need to worry about memory leak, garbage collection etc.
- Secure: Java language uses it. There are lots of Jobs in Java to make your career in this field.
I am author where i am writing for may products.