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 Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?

Answer Posted / tarun pundreek sharma

JSP is a server side technology given by sun microsystem after servlet technology. we have some drawback in servlet to overcome those drawback and also to attract programmers working on other domain the sun micro system introduce JSP.

Advantages of JSP:-

1: we need to re-compile our servlet for every single change in the source code of servlet , where as in the case of JSP re-compilation is not required since JSP are automatically handle by the web container for any update in their code.

2: servlet can not be access directly & have to be first mapped in the web.xml file.where as the jsp page access directly as a simple HTML page.

3: both servlet & jsp are server side components used to generate dynamic Html pages however JSP is preffered over servlet as it is developed by using a simple HTML template
& automatically handled by the JSP container.

4: JSP is a tag based approach it makes it easy to understand.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between httpservlet and generic servlets?

1161


What are different methods of session management in servlets?

1328


How can we create deadlock situation in servlet?

1488


Can you explain in detail 'javax.servlet' package?

1040


How to commuincate between an applet and a servlet?

1102


What are the exceptions thrown by servlets? Why?

1245


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

1255


Describe servlet?

1095


What is Servlet API used for connecting database?

1141


What are sessions in servlets?

1111


How servlets are deployed in java?

1071


Write all the phases defined in servlet life cycle?

1247


What is the difference between servlet and jsp?

1172


What is the difference between the include() and forward() methods?

1124


How native code can be used in a servlet?

4118