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 ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.