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 the difference between JSP and Servlet?

Answer Posted / satyabrata

Both servlet and jsp are web components. But servlet is
best suited for request processing, handling the business
logic while jsp is suitable for content generating .Its
easy to include html tag in jsp rather than servlet.Also
jsp is compiled to servlet when first loaded to
webserver.So in many framework servlet act as a controller
while jsp as a view.Also implicit object and action
elements available in jsp but not in servlet.

Is This Answer Correct ?    103 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?

863


How to include a jsp file in another jsp file?

856


What is jsp in javascript?

875


What are jsp lifecycle methods?

972


What is a expression?

882


Explain lifecycle methods.

962


Give the use of session object.

965


How can you make the finally clause not to fail to execute?

873


What is context in jsp?

821


Which one is better jsp or servlet?

861


What is jsp life cycle?

890


Explain the jsp:setProperty action.

930


List out some advantages of using jsp.

934


How do I mix jsp and ssi #include?

944


Is jsp front end or backend?

847