File: struts-examples-config.xml

package info (click to toggle)
libstruts1.2-java 1.2.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 47,516 kB
  • ctags: 29,430
  • sloc: xml: 90,344; java: 71,078; jsp: 31,692; makefile: 10; sh: 2
file content (137 lines) | stat: -rw-r--r-- 5,681 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<!--
     This is the Struts configuration file for the
     Tiles-documentation "examples" application
-->


<struts-config>

  <!-- ========== Form Bean Definitions ==================================== -->
  <form-beans>

    <!-- Logon form bean -->
    <form-bean      name="myPortalSettingsForm"
                    type="org.apache.struts.webapp.tiles.portal.PortalSettingsForm"/>
    <!-- Menu settings form bean -->
    <form-bean      name="myMenuSettingsForm"
                    type="org.apache.struts.webapp.tiles.portal.MenuSettingsForm"/>
    <!-- Skin settings form bean -->
    <form-bean      name="mySkinSettingsForm"
                    type="org.apache.struts.webapp.tiles.skin.LayoutSettingsForm"/>

  </form-beans>


  <!-- ========== Global Forward Definitions =============================== -->
  <global-forwards>
    <!-- Forward to error page -->
    <forward   name="failure"              path="forward.example.failure.page"/>
  </global-forwards>


  <!-- ========== Action Mapping Definitions =============================== -->
  <action-mappings>
  
  <!-- =======================================================  -->
  <!-- Examples Portal 1.1 actions  -->
  <!-- =======================================================  -->

    <!-- Dynamic Portal user lists retrieving action -->
  <action     path="/myPortal"
       		  type="org.apache.struts.webapp.tiles.portal.UserPortalAction">
  </action>

    <!-- Tiles Action associated to portal settings -->
  <action     path="/controller/myPortalSettings"
       		  type="org.apache.struts.webapp.tiles.portal.UserPortalSettingsAction"
			  name="myPortalSettingsForm" >
  </action>

    <!-- Portal settings page entrance:
         forward to appropriate page definition -->
  <action     path="/myPortalSettings"
       		  type="org.apache.struts.actions.ForwardAction"
			  name="myPortalSettingsForm"
			  parameter="examples.portal.settings.page"/>

    <!-- Tiles Action associated to Tile myMenuSettings -->
  <action     path="/controller/myMenuSettings"
       		  type="org.apache.struts.webapp.tiles.portal.UserMenuSettingsAction"
			  name="myMenuSettingsForm" >
  </action>

    <!-- Menu Settings page entrance:
         forward to appropriate page definition -->
  <action     path="/myMenuSettings"
       		  type="org.apache.struts.actions.ForwardAction"
			  name="myMenuSettingsForm"
			  parameter="examples.userMenu.settings.page"/>

  <!-- =======================================================  -->
  <!-- Tiles 1.1 Skin Settings -->
  <!-- =======================================================  -->

    <!-- Skin Settings page entrance:
         forward to appropriate page definition -->
  <action     path="/mySkinSettings"
       		  type="org.apache.struts.actions.ForwardAction"
			  name="mySkinSettingsForm" 
	          parameter="examples.skin.settings.page"/>

    <action     path="/controller/mySkinSettings"
                type="org.apache.struts.webapp.tiles.skin.LayoutSettingsAction"
				name="mySkinSettingsForm" >
   </action>

    <action     path="/controller/layoutSwitch"
                type="org.apache.struts.webapp.tiles.skin.LayoutSwitchAction"  >
   </action>

  <!-- =======================================================  -->
  <!-- Tiles 1.1 Rss Channel -->
  <!-- =======================================================  -->
    <action     path="/controller/rssChannel"
                type="org.apache.struts.webapp.tiles.rssChannel.RssChannelsAction">
   </action>
			   
  <!-- =======================================================  -->
  <!-- Test tabs with an action URL -->
  <!-- =======================================================  -->
    <action     path="/tabs"
                type="org.apache.struts.actions.ForwardAction"
		        parameter="examples.tabs.page"/>
			   
  </action-mappings>


  <!-- ========== Request Processor Declaration =================== -->
  <!-- The Tiles framework use a special request processor. YOU DON'T -->
  <!-- NEED TO DECLARE IT yourself (The TilesPlugin do it for you), unless -->
  <!-- you have created your own request processor. In this later case, -->
  <!-- your request processor should extend the org.apache.struts.tiles.TilesRequestProcessor -->
  <!-- and be declared here -->
  <!--  <controller processorClass="your.RequestProcessor"  />  -->

  <!-- ========== Associated Messages Ressource settings =================== -->
  <!-- Uncomment the following if your webserver complains about a missing resources. -->
  <!-- This resource is not needed by Tiles or this example. It is just a trick to make -->
  <!-- Struts happy with some web server. -->
  <!-- <message-resources parameter="org.apache.struts.webapp.tiles.dev1-1.ApplicationResources" null="false" /> -->

  
 <!-- ========== TilesPlugin settings ===================================== -->
 <!-- You should declare this plugin if you want to use Tiles with an XML definition file. -->
  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <!-- Path to XML definition files -->
    <set-property property="definitions-config" 
      value="/WEB-INF/tiles-defs.xml,/WEB-INF/tiles-examples-defs.xml"/>
    <!-- Set Module-awareness to true -->
    <set-property property="moduleAware" value="true" />
  </plug-in>

</struts-config>