Tuesday, November 6, 2012

What are the differences between jsp and servlet ?


 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,
General, Java, jsp

0 comments:

Post a Comment


 

Site Status

Man Behind Technical Today

Hello, I am Navin Bansal. I am a student of MCA in Rajsthan Institute of Engineering and Technology and owner of this blog. I share my view and ideas among people.