What is the difference between jsp and servlet?

Answer Posted / mahesh

Jsp is defined as Java server pages.
Jsp and servlet both are server side programming language.
the diffence in b/w these two is Jsp is used for
presentation part and servlet is use to give the business
logic.
Servlet act as redirector also. it redirect your page as
per the business logic.

anyhow Jsp are compiled to servlet but Jsp comes in to
picture to separate out the presentation logic from the
servlet to make it loosely coupled.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array a class in java?

696


Is ruby built on java?

701


How can you traverse a linked list in java?

866


What are unchecked exceptions in java?

791


What is java algorithm?

691






What is the meaning of course?

793


explain what is transient variable in java?

842


What is default locale java?

763


Are private methods final?

641


Is call by reference possible in java?

712


What is scope of a variable?

795


How many digits can a float hold?

722


Explain about field hiding in java?

690


What is difference between arraylist and list in java?

770


How do you clear a method in java?

718