What is the difference between jsp and servlet?

Answer Posted / namita

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 ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static import in java?

527


What are internal variables?

551


Give us the name of the list layoutmanagers in java?

522


What does singleton mean in java?

508


Why is singleton not thread safe?

645






What is a treeset in java?

542


What do you mean by ternary operator in java?

556


What is string [] args?

553


describe synchronization in respect to multithreading? : Java thread

501


Why main function is static?

665


List two java ide’s?

606


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

516


When can you say a graph to be a tree?

635


Explain creating threads by implementing runnable class?

587


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

573