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

What are the advantages of cookies?

1066


What are the objects involved when a servlet receives a call from client?

966


What is cgi?

951


How to get the IP address of client in servlet?

1028


Explain the differences between jsp and servlet.

939


What is a deployment descriptor?

1056


What are the disadvantages of storing session state in cookies?

1096


What is context in servlet?

984


What is webservlet?

953


How do you invoke a servelt?

1063


Differentiate between the print writer and servlet output stream?

955


What is difference between jsp and servlet?

1122


How to find whether a parameter exists in the request object?

1059


What is session?

1000


When a servlet accepts a call from a client, it receives two objects. What are they?

1192