What is the difference between JSP and Servlet?

Answer Posted / swetha bammidi

both servlet and JSP are same.Both are using to represent a
dynamic content to the user but their job is different.And
servlets are used for business logic whereas JSP are used for
presentation logic.If u want to present the data to the user once using servlets what you do is you put HTML with in java.if you want to present the data to the user once using JSP what you do is you put java with in HTML

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does error handling occur with jstl?

520


What is the difference between directive include and jsp include?

522


What is jsp scriptlet?

497


How is scripting disabled?

530


What are the main tags in jsp?

475






How do I use sendredirect?

516


Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

546


What are the different types of jsp tags?

487


How to pass information from jsp to included jsp?

523


Which jsp life cycle is in correct order?

515


What is the use of implicit object named "application" in Application?

1257


Can you use javascript in jsp?

489


Can you disable the caching on the back button of a particular browser?

511


Can we override the jspinit(), _jspservice() and jspdestroy() methods?

518


What is iselignored in jsp?

513