Step1 - Prepare dynamic web project with JSF library Step2 - Prepare application specific components like JSP PAGES Managed Beans,….etc Step3 -Run the application
FileNewDynamic web projectProject name:JSF app1 Prepare target runtimeclick on new runtimeselect apache tomcat 7.0àNextàprovide tomcat<home>dire:c:/tomcat7.0finish Dynamic web module version:3.0 or 2.5configuration: ModifySelect &change java server faces from 2.2 to 1.2 and select the respective check box save as provide name jstlib1.2 okok Nextnext selectþGenerate web.xml deployment descriptor Nextclick on manage library icon new provide user library Name:JSFlib1.2okselect JSflib 1.2 add external jars JSf-api.jar JSf-IMPL.jar JSTL.JAR Standard.jarokselectþJSFlib 1.2changes url mapping pattern :.dss finish Note:- With the above steps we are able to prepare Jsf app1 project with the default files web.xml and faces-config.xml
Loginform.JSP:- Right click on “web content ”folderà new select JSP file provide file name: Loginform.jspnextselect new java Server Faces(JSF)page (html)finish Note: With these steps log in form.jsp page will be generated, edit log in form.jsp page as per requirement. Similarly success.jsp and failure.jsp
Java ResourcesserRight click on srcnew class package name:car,durgasoft Class name: log in bean finish With the above steps a class will be created in work area *Declare required properties Right click on either of the property Select ”sources”select getter and setterselect allok with the above steps a bean component will be prepared with setter and getters here we have to declare business method with the application logic *Provide bean configuration and its navigation rules in faces-config.xml files as per the requirement
Right click on project()stapp1)Run asRun as serverNextFinish With these steps IDE will start server and it will access current application by opening browser. Manually provide/log in.dss in url http://local host:1010/JSf app1/loginform.dss
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.