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
FileNew
Dynamic web project
Project name:JSF app1
Prepare target runtime
click on new runtime
select apache tomcat 7.0àNextàprovide tomcat<home>dire:c:/tomcat7.0
finish
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
ok
ok
Nextnext
selectþGenerate web.xml deployment descriptor
Next
click on manage library icon
new
provide user library
Name:JSFlib1.2ok
select JSflib 1.2
add external jars
JSf-api.jar
JSf-IMPL.jar
JSTL.JAR
Standard.jarok
selectþJSFlib 1.2
changes 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
Prepare application Required Resources
Loginform.JSP:-
Right click on “web content ”folderà new select JSP file
provide file name: Loginform.jsp
next
select 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
Log in Bean. Java
Java Resourcesser
Right click on src
new
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 setter
select all
ok 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)Run as
Run as server
Next
Finish
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
0 Responses on STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE"