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

What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

610


Is java written in c?

538


What is class variable java?

581


What does super keyword do?

556


What are the advantages of java over C++?

713






What is integer size in java?

505


What is a priority queue java?

523


What is the default size of load factor in hashing based collection?

558


What is the difference between heap memory and stack memory?

613


How many bytes is a unicode character?

502


What is the difference between checked exception and unchecked exception?

524


What is meant by object oriented programming – oop?

543


Is it safe to install java on my computer?

537


What is executor memory?

517


Explain the transient field modifier?

560