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 / ranjan satapathy

Jsp is better for preparing presentation pages, while
servlet is good for request processing as it's more
difficult to write include, forward a static or dynamic url
with in out.println() ,

Jsp has also all implicit objects, we need not have to
instantiate any which is easier.

error handelling is easy in jsp isErrorPage="true"
errorPage="/page"

we need not have to bother about init(),service(),destroy
(),doGet(),doPost()in jsp.

in servlet for each time changing we have to explicitly
compile it.

Jsp automatically compiled by container when we reload the
page.

Is This Answer Correct ?    77 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

1038


What are jsp declarations?

1046


Can I run jsp on xampp?

976


What is jsp exception?

986


What are the components that make up a tag library in jsp?

881


Why do we use jstl tags?

926


What is page scope?

964


List out the various scope values of jsp action.

1091


What are the different scope values for the jsp objects?

994


How does a servlet communicate with a jsp page?

1021


Why is _jspservice() method starting with an '_' while other life cycle methods do not?

1000


How can a thread safe JSP page be implemented?

1029


Mention the advantages of jsp over pure servlets?

973


How many tags are provided by jstl?

1012


What are jsp lifecycle methods?

1116