<! Doctype Struts-config public
"-// Apache Software Foundation // DTD struts configuration 1.1 // en"
Http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;>
<Struts-config>
<Form-beans>
<Form-bean name = "logonform"
Type = "org. Apache. Struts. validator. dynavalidatorform">
<Form-property name = "username" type = "Java. Lang. String"/>
<Form-property name = "password" type = "Java. Lang. String"/>
</Form-bean>
</Form-beans>
<Global-forwards>
<Forward name = "success" Path = "/Main. jsp"/>
<Forward name = "logoff" Path = "/logoff. Do"/>
</Global-forwards>
<Action-mappings>
<Action Path = "/logon"
Type = "org. monotonous. Struts. logonaction"
Name = "logonform"
Scope = "session"
Input = "Logon">
</Action>
<Action Path = "/logoff"
Type = "org. monotonous. Struts. logoffaction">
<Forward name = "success" Path = "/index. jsp"/>
</Action>
</Action-mappings>
<Controller>
<! -- The "input" parameter on "action" elements is the name of
Local or global "Forward" rather than a module-relative path -->
<Set-Property = "inputforward" value = "true"/>
</Controller>
<Message-resources parameter = "org. monotonous. Struts. applicationresources"/>
</Struts-config>