Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Vijay Kumar
GenericServlet
2 Answer(s)      3 years and 9 months ago
Posted in : Servlet Interview Questions


What is the GenericServlet class?


Advertisement
View Answers

November 2, 2010 at 3:17 PM


GenericServlet makes writing servlets easier. To write a generic servlet, all you need to do is to override the abstract service method.



September 26, 2012 at 1:26 PM


It is nothing but a class which is a direct subclass of Servlet interface, generic class is overriding all the methods which is declared in servlet interface except one which is "service()"method thats why it is declared as Abstract class.



Related Tutorials/Questions & Answers:
GenericServlet
GenericServlet  What is the GenericServlet class?   GenericServlet makes writing servlets easier. To write a generic servlet, all you need to do is to override the abstract service method
Session with GenericServlet
Session with GenericServlet  Can I create a session with GenericServlet?   There are no protocol-specific features in GenericServlet, which is an implementation of the basic, general purpose Servlet interface. Servlet
Advertisements
Related to GenericServlet and HttpServlet
Related to GenericServlet and HttpServlet  Que: Http Servlet extends Generic Servlet then Why both GenericServlet and HttpServlet implements Serializable interface ?   GenericServlet and HttpServlet implement
Difference between GenericServlet and HttpServlet
In this section we will discuss about the difference between GenericServlet and HttpServlet. GenericServlet is an abstract class that extends java.lang.Object while HttpServlet is an abstract class that extends GenericServlet
Java httpservlet
; package and is sub class of GenericServlet class defined in "javax.servlet" package. GenericServlet class is used to define a generic, protocol
Types of Servlet
Types of Servlet  What are the types of Servlet ?   There are two types of servlets, GenericServlet and HttpServlet. GenericServlet defines... of GenericServlet and provides some http specific functionality linke doGet and doPost
the servlets
GenericServlet and HTTPServlet: 1)GenericServlet belongs to javax.servlet package while HttpServlet belongs to javax.servlet.http package. 2)GenericServlet... GenericServlet and implements java.io.Serializable. 3)The direct subclass
difference between init() & init(ServletConfig config)?
difference between init() & init(ServletConfig config)?  I want to know the difference between init() and init(ServletConfig config) methods in GenericServlet
HttpServlet protocols
HttpServlet protocols   What are the type of protocols supported by HttpServlet?   It extends the GenericServlet base class and provides an framework for handling the HTTP protocol. So, HttpServlet only supports HTTP
Servlet - Servlet Interview Questions
belongs to GenericServlet 2)GenericServlets are means it can be used generic... to GenericServlet is HttpServlet. 6)It is a protocol-independent servlet. 7)GenericServlet... GenericServlet. 3)It implements java.io.Serializable. 4)HttpServlet must override
Servlet
Servlet  can i override the service method?   You can override Service method in the servlet when you extend GenericServlet to create servlet as it is mandatory to override it. But, when you extend HttpServlet to create
servlets - Servlet Interview Questions
servlets  Hi I have written a servlet by extending GenericServlet. In that I have overriden init() and service()methods. when I execute the servlet only service() is getting executed bu not init(). can any one tell me the reason
java - Servlet Interview Questions
;Hi malli,GenericServlet is the super class of HttpServlet calssjava soft... GenericServlet classfor exampleXxxpServlet is specific to the Xxxp protocal
error in java progran at run time - Java Beginners
FirstServlet extends GenericServlet { public void service(ServletRequest req... symbol symbol: class GenericServlet public class FirstServlet extends GenericServlet ^ FirstServlet.java:6: cannot find
error in java progran at run time - Java Beginners
FirstServlet extends GenericServlet { public void service(ServletRequest req... symbol symbol: class GenericServlet public class FirstServlet extends GenericServlet ^ FirstServlet.java:6: cannot find
servlet
form or another.The abstract GenericServlet class provides the framework
servlets
that implements it such as HttpServlet. Servlets | GenericServlet | HTTPServlet
compilation fail
*; public class WelcomeServlet extends GenericServlet { public void service
j2ee environment varaiable details
*; import java.io.*; public class helloworldservlet extends genericservlet
Java Glossary Term - H
;javax.servlet.http" package and is sub class of GenericServlet class defined in "javax.servlet" package. GenericServlet class is used to define a generic
Servlet Interview Questions
, GenericServlet and HttpServlet. GenericServlet defines the generic or protocol independent servlet. HttpServlet is subclass of GenericServlet and provides some..., there's almost no reason to override the doOptions and doTrace methods. GenericServlet
servlet programe
servlet programe  import java.io.*; import javax.servlet.*; public class Helloservlet extends GenericServlet{ { public void service(ServletRequest request, ServletResponse response) throws ServletException , IOException
Java : What is servlet?
can use or extend the GenericServlet class. For handling HTTP-specific
Servlets Program
extends GenericServlet{ public void init(ServletConfig sc)throws
Diff b/w servlet n jsp - Java Interview Questions
can use GenericServlet class as base class of your custom servlet class
service method in servlet
write in GenericServlet's service doXXXX() method (in doXXXX() method there can
java developer
java.io.*; import java.sql.*; public class validservlet extends GenericServlet... GenericServlet { public void service(ServletRequest req,ServletResponse res
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection - JSP-Servlet
*; /** * @author Santosh */ public class LoginServlet extends GenericServlet
how to execute the below servlet with html page
java.io.*; import java.sql.*; public class validservlet extends GenericServlet... extends GenericServlet { public void service(ServletRequest req,ServletResponse
Servlet Interview Questions - Page 2
: It extends the GenericServlet base class and provides an framework for handling
Accessing Database from servlets through JDBC!
servlets. The HttpServlet is extended from GenericServlet base class
Servlet Tutorials Links
; Generic Servlet : The GenericServlet class implements the Servlet interface... subclass GenericServlet, or its descendent HttpServlet, unless the servlet needs....) The GenericServlet class was created to make writing servlets easier. It provides simple
 

 

 

DMCA.com