O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Struts Configuration File

The Struts configuration file used for this application is shown in the sections below. This file contains a number of entries which instruct Struts on how to map requests to servlets. Since this example does not use any Struts form-beans, so there are no entries in that section and it is not shown here. There are however two definitions for global-forwards which map a URI to the path specified as shown next.

Struts Configuration File
<global-forwards>

   <forward   name="logon"  path="/logon.jsp"/>
   <forward   name="index"  path="/index.jsp"/>

</global-forwards>

The action-mapping section of the configuration file is where we derive value from using Struts in this application. Even for this relatively simple example, you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required