Skip to content

Commit 8f9b568

Browse files
committed
Refactor(exclude-parameters, form-validation)
1 parent bc71082 commit 8f9b568

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

exclude-parameters/src/main/resources/struts.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<struts>
77

88
<constant name="struts.devMode" value="true" />
9-
9+
<constant name="struts.allowlist.packageNames" value="org.apache.struts.edit.model" />
1010
<package name="basicstruts2" extends="struts-default" >
1111

1212
<interceptors>
@@ -20,7 +20,7 @@
2020
</interceptors>
2121

2222
<default-interceptor-ref name="appDefault" />
23-
23+
<default-action-ref name="index" />
2424
<!-- If no class attribute is specified the framework will assume success and
2525
render the result index.jsp -->
2626
<!-- If no name value for the result node is specified the success value is the default -->

form-validation/src/main/resources/struts.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<constant name="struts.devMode" value="true" />
99

1010
<package name="basicstruts2" extends="struts-default">
11-
11+
<default-action-ref name="index" />
1212
<!-- If no class attribute is specified the framework will assume success and
1313
render the result index.jsp -->
1414
<!-- If no name value for the result node is specified the success value is the default -->
@@ -22,8 +22,8 @@
2222
<result name="success">/HelloWorld.jsp</result>
2323
</action>
2424

25-
<action name="registerForm">
26-
<result>/register.jsp</result>
25+
<action name="registerForm" class="org.apache.struts.register.action.Register" method="input">
26+
<result name="input">/register.jsp</result>
2727
</action>
2828

2929
<action name="register" class="org.apache.struts.register.action.Register" method="execute">

0 commit comments

Comments
 (0)