Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Generic Servlet and how it is different from Http
Servlet?

Answer Posted / l sujata

Actually generic sevlet class is a super class of
HttpServlet class.both of these classes are abstract in
nature.As in generic servlet service () methob is not
defined so they r defined in HttpServlet class. as we are
not interested to create an object of HttpServlet class
so,we make it as abstract class and class that implemnts
HttpServlet Class creates objects and uses three methods
such as init(),service(),destroy() mainly.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many jsp scripting elements are there and what are those?

980


What is the directory structure of a war file?

1122


What is the process to implement doget and dopost methods?

950


Explain the lifecycle of a servlet?

929


What are the differences between the servletconfig interface and the servletcontext interface?

1134


Can we use threads in Servlets?

1102


Is servlet a server side scripting language?

1082


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1071


What is load-on-startup in servlet?

1097


What are the types of an http request?

1107


What are the different ways we can maintain state between requests?

1068


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

2294


What is cookies in servlet with example?

1051


What exception should be thrown when servlet is not properly initialized?

977


What is meant by a web application

983