SERVLETS Q&A oral sex: What is a Servlet? execute: coffee hit Servlets atomic number 18 host human face components that go aways a powerful mechanism for development horde side of web application. Earlier CGI was developed to provide server side capabilities to the web applications. Although CGI played a study portion in the explosion of the Internet, its performance, scalability and reusability issues make it less than optimum solutions. Java Servlets changes all that. Built from ground up use Suns create verbally once run anywhere technology coffee bean servlets provide excellent framework for server side processing. disbelief: What argon the types of Servlet? Answer: There are two types of servlets, GenericServlet and HttpServlet. GenericServlet defines the generic or protocol independent servlet. HttpServlet is subclass of GenericServlet and provides some http particular(prenominal) functionality linke doGet and doPost methods. Question: What are the differences between HttpServlet and Generic Servlets? Answer: HttpServlet Provides an analysis class to be subclassed to create an hypertext transfer protocol servlet suitable for a tissue site. A subclass of HttpServlet must tip over at to the lowest score one method, usually one of these: * doGet, if the servlet supports HTTP GET prays * doPost, for HTTP POST requests * doPut, for HTTP put option requests * doDelete, for HTTP DELETE requests * init and destroy, to fare resources that are held for the life of the servlet * getServletInfo, which the servlet uses to provide study about itself Theres or so no reason to subvert the service method. service handles banner HTTP requests by dispatching them to the handler methods for apiece HTTP request type (the doXXX methods listed above). Likewise, theres almost no reason to override the doOptions and doTrace methods. GenericServlet defines a generic, protocol-independent servlet. To write a n HTTP servlet for use on the Web, extend Ht! tpServlet instead. GenericServlet implements the Servlet and ServletConfig...If you pauperization to get a full essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.