WHAT'S NEW?
SERVLETS V/S JSP

1)Servlet
- Servlet does not have any separation between dynamic & static contents.
JSP
- JSP has a clean separation between dynamic & static content.

2)Servlet
- Servlet does not have support for implicit objects.
JSP
- JSP supports implicit objects.

3)Servlet
- Servlet supports any protocol including Http.
JSP
- JSP supports only Http protocol.

4)Servlet
- Servlets are pure java program stored with extension (.java).
JSP
- JSPs are document-centric stored with extension(.jsp)

5)Servlet
- If any changes are made in .class file. It has to be redeployed
JSP
- Whenever any changes are made to (.jsp) file, JSP ENGINE Retranslates & recompiles, hence no redeployment.

0 comments:

Post a Comment