Programming Jakarta Struts, 2nd Edition [Electronic resources]

Chuck Cavaness

نسخه متنی -صفحه : 181/ 131
نمايش فراداده

18.4 Converting Existing Struts Applications to JSF

To convert an existing Struts application to use JSF within a Struts application, you will need to perform the following steps:

  1. Add the struts-faces.jar file to your application's WEB-INF/lib directory.

  2. Add the JARs for your particular JSF implementation to your application's WEB-INF/lib directory.

  3. Configure the Web Application Deployment Descriptor (web.xml) to use the Faces Front Controller.

You can now modify your application's pages to use the JSF tag libraries.