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 are data types in oop?

559


What about main thread in java?

658


What’s the difference between unit, integration and functional testing?

624


What is type safety in java?

499


What is callable java?

564






What is the inheritance?

564


Can a class be private in java?

555


what is the major difference between linkedlist and arraylist in java?

562


What is an interface in java? Explain

589


Can we define private and protected modifiers for variables in interfaces?

592


What is treeset in java?

555


What is the purpose of abstract class?

537


What are the different access modifiers available in java?

567


Explain the access modifiers for a class, method and variables?

672


what is mutual exclusion? : Java thread

562