Struts Tutorial «Prev  Next»


Installing Struts

In order to do any Java development you need the Java Developer Kit. You can find JDK1.4 at http://java.sun.com.
Just execute the installation executable and follow the instructions.
You will need to setup the PATH and the JAVA HOME variables;
Struts can also be found as a subproject of the Jakarta project (http://jakarta.apache.org). There is no Struts installation for the moment, just uncompress it in a convenient directory. Copy the following JAR files, extracted from the Jakarta Struts archive, to the

/WEB-INF/lib directory:
struts.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
commons-validator.jar

Copy the tld files you want to use in the /WEB-INF directory:
struts-html.tld
struts-bean.tld
struts-logic.tld
struts-nested.tld
struts-template.tld

If you want to use tiles add the struts-tiles.tld also in the /WEB-INF directory.

Add struts-config.xml file in the /WEB-INF directory
Fot configuring the struts for you application refer to Configuring Struts.
For Struts documentation, install notes, and downloads, see the Struts Home page.