File tree Expand file tree Collapse file tree
exclude-parameters/src/main/resources
form-validation/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 -->
Original file line number Diff line number Diff line change 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 -->
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" >
You can’t perform that action at this time.
0 commit comments