File: struts-config-registration.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 (72 lines) | stat: -rw-r--r-- 2,625 bytes parent folder | download | duplicates (5)
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
<?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">
<!--
 $Header: /home/cvs/jakarta-struts/web/example/WEB-INF/struts-config-registration.xml,v 1.8 2004/09/02 03:43:15 niallp Exp $
 $Revision: 1.8 $
 $Date: 2006-02-14 19:26:15 +0000 (Tue, 14 Feb 2006) $

 Copyright 2000-2004 Apache Software Foundation

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<struts-config>
  <display-name><![CDATA[
     registration
  ]]>
  </display-name>
    <description><![CDATA[
     This is the Struts configuration file for the registration 
     portion of the example application, using the wildcard syntax.
  ]]>
  </description>

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

    <!-- Registration form bean -->
    <form-bean      name="RegistrationForm"
                    type="org.apache.struts.webapp.example.RegistrationForm"/>

  </form-beans>

  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
    <forward   name="Registration"         path="/Registration.jsp"/>
  </global-forwards>

  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>

    <!-- Matches all edit actions (in this case, only user regstration) -->
    <action    path="/Edit*"
               type="org.apache.struts.webapp.example.Edit{1}Action"
               name="{1}Form"
              scope="request"
           validate="false">
      <forward name="success"              path="/{1}.jsp"/>
    </action>

    <!-- Matches all save actions (in this case, only user registration) -->
    <action    path="/Save*"
               type="org.apache.struts.webapp.example.Save{1}Action"
               name="{1}Form"
              scope="request"
              input="{1}">
      <set-property property="cancellable" value="true"/>
    </action>

  </action-mappings>

</struts-config>