| <?xml version="1.0" encoding="ISO-8859-1" ?> |
| |
| <!DOCTYPE struts-config PUBLIC |
| "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" |
| "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> |
| |
| <!-- |
| This is a test Struts configuration file |
| --> |
| |
| |
| <struts-config> |
| |
| |
| <!-- ========== Data Source Configuration =============================== --> |
| <!-- |
| <data-sources> |
| <data-source |
| autoCommit="false" |
| description="Example Data Source Configuration" |
| driverClass="org.postgresql.Driver" |
| maxCount="4" |
| minCount="2" |
| password="mypassword" |
| url="jdbc:postgresql://localhost/mydatabase" |
| user="myusername" |
| /> |
| </data-sources> |
| --> |
| |
| <!-- ========== Form Bean Definitions =================================== --> |
| <form-beans> |
| |
| <!-- Example logon form bean |
| <form-bean name="logonForm" |
| type="org.apache.struts.example.LogonForm"/> |
| --> |
| |
| </form-beans> |
| |
| |
| <!-- ========== Global Forward Definitions ============================== --> |
| <global-forwards> |
| |
| <!-- Example logon forward |
| <forward name="logon" path="/logon.jsp"/> |
| --> |
| |
| </global-forwards> |
| |
| |
| <!-- ========== Action Mapping Definitions ============================== --> |
| <action-mappings> |
| |
| <!-- Example logon action |
| <action path="/logon" |
| type="org.apache.struts.example.LogonAction" |
| name="logonForm" |
| scope="request" |
| input="/logon.jsp"> |
| </action> |
| --> |
| |
| <!-- Example logoff action |
| <action path="/logoff" |
| type="org.apache.struts.example.LogoffAction"> |
| <forward name="success" path="/index.jsp"/> |
| </action> |
| --> |
| |
| |
| <!-- The standard administrative actions available with Struts --> |
| <!-- These would be either omitted or protected by security --> |
| <!-- in a real application deployment --> |
| <action path="/admin/addFormBean" |
| type="org.apache.struts.actions.AddFormBeanAction"/> |
| <action path="/admin/addForward" |
| type="org.apache.struts.actions.AddForwardAction"/> |
| <action path="/admin/addMapping" |
| type="org.apache.struts.actions.AddMappingAction"/> |
| <action path="/admin/reload" |
| type="org.apache.struts.actions.ReloadAction"/> |
| <action path="/admin/removeFormBean" |
| type="org.apache.struts.actions.RemoveFormBeanAction"/> |
| <action path="/admin/removeForward" |
| type="org.apache.struts.actions.RemoveForwardAction"/> |
| <action path="/admin/removeMapping" |
| type="org.apache.struts.actions.RemoveMappingAction"/> |
| |
| |
| </action-mappings> |
| |
| </struts-config> |