STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE

Ratings:
(4)
Views:722
Banner-Img
  • Share this blog:

STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE

Step1 - Prepare dynamic web project with JSF library Step2 - Prepare application specific components like JSP PAGES Managed Beans,….etc Step3 -Run the application  

Prepare Dynamic web project

File2New2Dynamic web project2Project name:JSF app1 2Prepare target runtime2click on new runtime2select apache tomcat 7.0àNextàprovide tomcat<home>dire:c:/tomcat7.02finish Dynamic web module version:3.0 or 2.52configuration: Modify2Select &change java server faces from 2.2 to 1.2 and select the respective check box2 save as 2provide name jstlib1.22 ok2ok Next2next2 selectþGenerate web.xml deployment descriptor 2Next2click on manage library icon2 new2 provide user library Name:JSFlib1.22ok2select JSflib 1.22 add external jars JSf-api.jar JSf-IMPL.jar JSTL.JAR Standard.jar2ok2selectþJSFlib 1.22changes url mapping pattern :.dss2 finish Note:- With the above steps we are able to prepare Jsf app1 project with the default files web.xml and faces-config.xml  

Prepare application Required Resources

Loginform.JSP:- Right click on “web content ”folderà new 2select JSP file2 provide file name: Loginform.jsp2next2select new java Server Faces(JSF)page (html)2finish 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  

Log in Bean. Java

Java Resources2ser2Right click on src2new 2class2 package name:car,durgasoft Class name: log in bean 2 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”2select getter and setter2select all2ok 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  

Run JSF Application

Right click on project()stapp1)2Run as2Run as server2Next2Finish With these steps IDE will start server and it will access current application by opening browser. 2Manually 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

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

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.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox