What is the difference between servlet and JSP?

1)Servlets are pure java code but jsp is markup language, combination of java code and SGML tag.
2)Servlets are used for business logic but JSPs are used for view purpose.
3)Servlets need to be configured in web.xml JSPs do not need.
4)Servlets need recompilation for a small change but JSPs do not need.

No comments:

Post a Comment