Both techniques are used to handle the web request in java or creating dynamic content with web pages-
Servlets- servlets executed on server and acting as a middle layer between clients and lower level applications.servlets contain the html code in java program. servlets are well suited to deciding how to handle client requests and invoke them but are not well suited for generating contents.Here markup code is harder to implement or maintain in web application. Developers need more experience of java to written servlets.
JSP- Jsp designed and developed less like programs and more like web pages.Generating html is much easier than servlets. Java code is written in html program or in html code.Jsp can use java bean with specified scope(Session,Request).
For Further Reading,
- Spring Framework - Example of Database Connectivity with DataSource
- Spring Framework- Execption handling in AOP
- Spring Framework - Example to use @Before annotation with args() in AOP
- Spring Framework-Example to use JoinPoint in AOP
- JSP Tutorials
- How to jsp is process in web application ?
- What are the differences between jsp and servlet ?
- What is JSP ?
- Spring Framework - MethodReplacer Example in spring
0 comments:
Post a Comment