What is the difference between JSP and Servlet?

Answer Posted / gaurav

The main difference between jsp and servlet is that in
servlet we write html code in java class and in jsp we write
java code in html page.Servlet is a java class.According to
MVC(model,view,controller) pattern servlet is used as
controller while JSP is used as view.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the various action tags used in jsp.

507


Can I stop jsp execution while in the midst of processing a request?

557


What is a declaration?

530


What is jstl?

533


What is translation phase?

577






What is a jsp and what is it used for?

533


What are scripting elements?

545


How does a servlet communicate with a jsp page?

548


Explain jsp?

554


How do I view jsp files in my browser?

511


What is the advantage of using getProperty action, as compared to the accessor method?

2772


What is error page in jsp?

491


How to ignore the el expression evaluation in a jsp?

515


Explain jsp technology?

534


Why do we use jsp?

498