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 / sarfaraz sheikh

difference between Servlet and JSP::

Servlet::

1) It is a controller which is used into appllication to
collect inputs from end user and pass them to service layer.

2) It is service provider between presentation layer and
service layer.

3)It has less execution time as compare to JSP.

4)It is used to desighn static and dynamic pages for GUI.

5) Servlet doesent has implecit objects but there is an
option to make explicit objects.

6) We can be embeded html or plan text with servlet classes.

7)It suport to http and others protocol.

JSP::

1) 1) It is not controller which is used into appllication
only purpose of desighning GUI.

2) It is service provider between presentation layer and
service layer.

3)It has less execution time as compare to JSP.

4)It is used to desighn static and dynamic pages for GUI.

5) Servlet doesent has implecit objects but there is an
option to make explicit objects.

6) We can be embeded html or plan text with servlet classes.


JSP::

1) 1) It is not controller which is used into appllication
only purpose of desighning GUI.



2) It is service provider between presentation layer and
service layer.

3)It has less execution time as compare to JSP.

4)It is used to desighn static and dynamic pages for GUI.

5) Servlet doesent has implecit objects but there is an
option to make explicit objects.

6) We can be embeded html or plan text with servlet classes.


JSP::

1) 1) It is not controller which is used into appllication
only purpose of desighning GUI.

2) It is not service provider between presentation layer and
service layer but it is component of presentation layer.

3)It has more execution time as compare to servlet.

4)It is used to desighn only dynamic pages for GUI.

5) JSP has implecit objects to implements jsp code.

6) JSP allow to embeded java code into predifined jsp tages.

7) JSP only suport to http protocol.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are advantages of servlets over cgi?

1116


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

2371


What is http servlet in java?

1075


Explain jsessionid?

1044


What is meant by a servlet?

1106


What is URL Encoding?

1190


What is the use of httpservletrequestwrapper?

1105


What is the use of welcome-file-list?

1037


Why is httpservlet declared abstract?

1130


How can a servlet be used to generate plain text instead of html?

957


What is the difference between portlet and servlet?

998


Is servlet a controller?

1017


Explain the steps involved in placing a servlet within a package?

1060


Is servlet a framework?

1049


What is servlet instance?

1061