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">
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" />
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" />
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" />
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" />
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" />
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" />
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" />
53
<action path="/forward-redirect-default" type="org.apache.struts.webapp.exercise.SuccessAction" >
54
<forward name="success" path="/" redirect="true" contextRelative="true" />
56
<action path="/forward-redirect-default-module" type="org.apache.struts.webapp.exercise.SuccessAction" >
57
<forward name="success" path="/" redirect="true" />
59
<action path="/forward-redirect-path" type="org.apache.struts.webapp.exercise.SuccessAction" >
60
<forward name="success" path="/html-link.do" redirect="true" />
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" />
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" />
74
<message-resources parameter="org.apache.struts.webapp.exercise.MessageResources" null="false" />