Step1 - Prepare dynamic web project with JSF library Step2 - Prepare application specific components like JSP PAGES Managed Beans,….etc Step3 -Run the application
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.5
configuration: Modify
Select &change java server faces from 2.2 to 1.2 and select the respective check box
save as
provide name jstlib1.2
ok
ok Next
next
selectþGenerate web.xml deployment descriptor
Next
click on manage library icon
new
provide user library Name:JSFlib1.2
ok
select JSflib 1.2
add external jars JSf-api.jar JSf-IMPL.jar JSTL.JAR Standard.jar
ok
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
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
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
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
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.