~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to web/examples/WEB-INF/exercise/struts-config.xml

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE struts-config PUBLIC
 
3
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
 
4
          "http://struts.apache.org/dtds/struts-config_1_2.dtd">
 
5
<struts-config>
 
6
  <form-beans>
 
7
    <form-bean name="testbean" type="org.apache.struts.webapp.exercise.TestBean" />
 
8
    <!-- Locale form bean -->
 
9
    <form-bean name="localeForm" type="org.apache.struts.action.DynaActionForm">
 
10
      <form-property name="language" type="java.lang.String" />
 
11
      <form-property name="country" type="java.lang.String" />
 
12
      <form-property name="page" type="java.lang.String" />
 
13
    </form-bean>
 
14
  </form-beans>
 
15
  <global-forwards>
 
16
    <forward name="absolute" path="http://jakarta.apache.org/struts" />
 
17
    <forward name="context-relative" path="/welcome.do" contextRelative="true" />
 
18
    <forward name="module-root" path="/welcome.do" module="" />
 
19
    <forward name="module-validator" path="/welcome.do" module="/validator" />
 
20
    <forward name="relative" path="/welcome.do" />
 
21
    <forward name="redirect-default" path="/" redirect="true" />
 
22
    <forward name="logic-forward" path="/logic-forward.do" />
 
23
  </global-forwards>
 
24
  <action-mappings>
 
25
    <action path="/welcome" forward="/index.html" />
 
26
    <action path="/bean-write-2" forward="/bean-write-2.jsp" />
 
27
    <action path="/html-img" forward="/html-img.jsp" />
 
28
     <!-- :FIXME: ImageAction should compute module prefix -->
 
29
    <action path="/html-img-action" type="org.apache.struts.webapp.exercise.ImageAction" parameter="/exercise/struts-power.gif"/>
 
30
    <action path="/html-link" forward="/html-link.jsp" />
 
31
    <action path="/html-link-submit" type="org.apache.struts.webapp.exercise.HtmlSettersAction" name="testbean" scope="session" validate="false">
 
32
      <forward name="input" path="/html-link.do" />
 
33
    </action>
 
34
    <action path="/html-messages" forward="/html-messages.jsp" />
 
35
    <action path="/html-multibox" forward="/html-multibox.jsp" />
 
36
    <action path="/html-multibox-submit" type="org.apache.struts.webapp.exercise.HtmlSettersAction" name="testbean" scope="session" validate="false">
 
37
      <forward name="input" path="/html-multibox.do" />
 
38
    </action>
 
39
    <action path="/html-select" forward="/html-select.jsp" />
 
40
    <action path="/html-select-submit" type="org.apache.struts.webapp.exercise.HtmlSettersAction" name="testbean" scope="session" validate="false">
 
41
      <forward name="input" path="/html-select.do" />
 
42
    </action>
 
43
    <action path="/html-setters" forward="/html-setters.jsp" />
 
44
    <action path="/html-setters-submit" type="org.apache.struts.webapp.exercise.HtmlSettersAction" name="testbean" scope="session" validate="false">
 
45
      <forward name="input" path="/html-setters.do" />
 
46
    </action>
 
47
    <action path="/logic-forward" forward="/logic-forward.jsp" />
 
48
    <action path="/logic-forward-test-forward" forward="/logic-forward-test-forward.jsp" />
 
49
    <action path="/logic-redirect-test-action" forward="/logic-redirect-test-action.jsp" />
 
50
    <action path="/logic-redirect-test-forward" forward="/logic-redirect-test-forward.jsp" />
 
51
    <action path="/logic-redirect-test-page" forward="/logic-redirect-test-page.jsp" />
 
52
 
 
53
    <action path="/forward-redirect-default" type="org.apache.struts.webapp.exercise.SuccessAction" >
 
54
        <forward name="success" path="/" redirect="true" contextRelative="true" />
 
55
    </action>
 
56
    <action path="/forward-redirect-default-module" type="org.apache.struts.webapp.exercise.SuccessAction" >
 
57
        <forward name="success" path="/" redirect="true" />
 
58
    </action>
 
59
    <action path="/forward-redirect-path" type="org.apache.struts.webapp.exercise.SuccessAction" >
 
60
        <forward name="success" path="/html-link.do" redirect="true" />
 
61
    </action>
 
62
 
 
63
      <!-- :FIXME: We could allow forward to use an action attribute
 
64
      <action path="/forward-redirect-default-module" type="org.apache.struts.webapp.exercise.SuccessAction" >
 
65
          <forward name="success" action="/html-link" redirect="true" />
 
66
      </action>
 
67
      -->
 
68
 
 
69
    <!-- Locale Action -->
 
70
    <action path="/locale" type="org.apache.struts.webapp.validator.LocaleAction" name="localeForm" scope="request">
 
71
      <forward name="success" path="/welcome.do" />
 
72
    </action>
 
73
  </action-mappings>
 
74
  <message-resources parameter="org.apache.struts.webapp.exercise.MessageResources" null="false" />
 
75
</struts-config>