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 / naina verma

Difference between servlets and JSP:

1. Servlet = HTML in java code.
JSP = java code in HTML.

2. Servlet support all protocols.
JSP only support HTTP protocol.

3. Servlet has more Dynamic content and less Static.
JSP less Dynamic content and more static content.

4. Servlet has business logic.
JSP has presentation and business logic both.

5. In servlet for any modification recompilation is done.
In JSP no recompilation is done for any modification.

6. Servlet is fast.
JSP is Slow.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http servlet?

1065


How can the session in servlet can be destroyed?

1184


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1043


How many servlet objects are created?

1069


Why is httpservlet declared abstract?

1116


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1033


How to get the path of servlet in the server?

1013


What is the servlet?

1091


Can a jsp be called using a servlet?

1141


Difference between get and post in java servlets?

1038


What is pure servlet?

1212


What do you mean by request dispatcher in servlet? Also explain its methods.

1151


Is it good idea to create servlet constructor?

1256


Why jsp is better than servlet?

1033


What exception should be thrown when servlet is not properly initialized?

1010