Difference between jsf, servlet and jsp

mindfiresolution 103 views 5 slides Mar 09, 2018
Slide 1
Slide 1 of 5
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5

About This Presentation

JSF is a Java-based web framework. It simplifies web application development by allowing programmers to building component-based user interfaces (UIs). In addition to providing a standard of UI components, JSF also allows developers to build custom UI components through an application programming in...


Slide Content

Difference Between
JSF, Servlet And
JSP

➢Java Server Faces (JSF)
JSFisaJava-basedwebframework.Itsimplifieswebapplicationdevelopmentbyallowing
programmerstobuildingcomponent-baseduserinterfaces(UIs).Inadditiontoproviding
astandardofUIcomponents,JSFalsoallowsdeveloperstobuildcustomUIcomponents
throughanapplicationprogramminginterface(API).Also,thedeveloperscanuseJSFto
connectthereusableUIcomponentsseamlesslywithvariousdatasourcesandserver-side
eventhandlers.TheprogrammerscantakeadvantageofJSFtosimplifywebapplication
developmentandmaintenancebyusingreusablecomponents.Theycanevenruntheweb
frameworkonJavaapplicationserver,andmakeitrenderUIcomponentsaccordingto
targetedclients.

➢Java Servlet:
ServletisaJava-basedtechnologythataccelerateswebapplicationdevelopmentbyproviding
component-basedmodules.ThedeveloperscanfurtheruseJavaServletasaclasstoextendtheweb
serverandrespondtovarioustypesofincomingrequests.Atthesametime,theJavaprogrammers
canalsouseServlettobuildcustomwebapplicationsbasedonvariedbusinessrequirementsby
takingadvantageofvariousJavaAPIs.TheycanevenuseServlettocollectuserinputthroughweb
forms,presentrecordsretrievedfromvariousdatasources,andgeneratewebpagesonthefly.
ManyprogrammersuseJavaServletasafasteralternativetocommongatewayinterface(CGI).
TheyalsohaveoptiontocreatecustomJavaServletsthroughthepackagesprovidedbyJavaEE-
javax.servletandjavax.servlet.http.JavaServletmakesiteasierforprogrammerstoaccomplisha
numberofwebdevelopmenttasks-readingimplicitHTTPrequest.

➢Java Server Pages (JSP):
JSPisaJava-basedserver-sideprogrammingwhichhelpsdeveloperstocreateweb
applicationsthatsupportdynamiccontent.WhileusingJSP,thedeveloperscanaccessawide
rangeofJavaAPIsaccordingtopreciseprojectneeds.TheycanevenuseJSPtagstoinsertJava
codeintoHTMLpageswithoutwritingadditionalcode.TheJSPcomponentsalsoactjustlike
auserinterfacefortheJavaapplication.TheprogrammersevenhaveoptiontowriteJSPas
textfiles,andintegratethetextfilessmoothlywithHTML,XML,andXHTMLcode.While
writingwebapplicationsinJava,theprogrammerscanuseJSPasarobustalternativeto
commongatewayinterface(CGI).ButthedeveloperscanuseJSPtagstoaccomplishcommon
webdevelopmenttasksbyusingJSPtags.TheycanevenuseJSPasdynamicelementsin
HTML,forcreatingdynamicwebpages,andcollectinguserinputthroughwebforms.

Content Designed
By:
Mindfire Solutions