8.5. Building, Installing, and Running the Struts Application

Listing 8.20 presents the Ant buildfile for this version of the application. There isn't anything really new here; I'll just point out as reminders that we need struts.jar on the CLASSPATH as we compile, and also need it deployed as part of the application. We also copy three of the four struts tag library descriptor files into WEB-INF/ directory (we didn't use anything from struts-template.tld). The implementations of these tags are all in struts.jar, so no need to install anything else for the tag libraries.

Listing 8.20. Ant Buildfile for Struts Version of Example Application
 <project name="nfl-struts" default="war" basedir="."> <property name="servlet.jar" value="../../../servlet.jar" ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.