Skip to content

10. Appendices

10.1. Configuring Tomcat 5

The previous examples used the Tomcat 4.x web server. If you are using Tomcat 5.x, the configuration of the strutspersonne application will be slightly different:

  • First, the context is not created in the <tomcat5>/conf/server.xml file. It is created in a strutspersonne.xml file located in the <tomcat5>/conf/Catalina/localhost folder:

Image

  • The contents of the strutspersonne.xml file (it is likely that its name can actually be anything) are as follows:
<Context docBase="D:\data\web\struts\personne" path="/strutspersonne">
</Context>
  • The Struts .jar files are located in <tomcat5>/shared/lib:

Image