over 7 years ago
Servlet is very powerful server side scripting language. It is a class which basically handle network request-response model. It is very powerful as we had earlier like CGI.
Basic Request-Rsponse Model
When browser send http request to java web server(like Tomcat, Jeety) then server pass the request to specific servlet , which process the request and perform task and revert response to the browser.
Where Servlet Runs ?
Servlet runs under web server. We can say that servlet container . Example-
Servlet Life Cycle
Servlet follows certain life cycle which is managed by servlet container. Servlet life cycle is as -
Servlet Initialization -By calling the init () method.
Process Request - calls service() method to process a client's request.
Servlet Termination -The servlet is terminated by calling the destroy() method.
Finally, servlet is garbage collected by the garbage collector of the JVM.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2022 FindNerd.com. All rights reserved.
Sign up using