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...

why are using HttpServlet in realtime projects and why are
not using Genericservlet

Answer Posted / arun sharma

HttpServlet is Http Protocol Specific whereas Generic
servlet is protocol independent and as we know that on
world wide web only http protocol exists thats why most of
the servlets are developed using HttpServlet class. but id
we want proocol independent servlet in that case we develop
servlet using GenericServlet class.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the use of servletcontext?

1095


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1088


what is multiple server?

2257


What is the element?

1005


What are the different mode that servlets can be used?

963


How to notify an object in session when session is invalidated or timed-out?

1029


Which is better jsp or servlet?

976


What is servlet container?

1070


Explain Action Servlet?

1027


What is the use of java servlet api?

975


Can you refresh servlet in client and server-side automatically?

1029


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1042


What are the two important api's in for servlets?

1014


Write a command to get actual path of a servlet to the server?

969


Why servlet is mostly used?

1185