Group Discounts available for 3+ students and Corporate Clients

STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE

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

 

 

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Support


    Please Enter Your Details and Query.
    Three + 6