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

Why is stringbuffer not immutable?

576


How do you check if a character in a string is a digit or letter?

528


What is final, finally, finalize?

611


What is internal iteration in java se 8?

637


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

497






What about abstract classes in java?

619


What is the maximum size of array in java?

530


What are recursive functions?

581


What are inbuilt functions in java?

569


What is identifier with example?

590


What is the lifetime and scope of a variable?

527


what is the final keyword denotes in java?

594


Difference between this() and super() ?

589


Write a java program to generate fibonacci series ?

582


Which class is used by server applications to obtain a port and listen for client requests?

509