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.

Get Programming Jakarta Struts, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.