Updates config to be aligned with SMI
Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/06ddc54a Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/06ddc54a Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/06ddc54a Branch: refs/heads/master Commit: 06ddc54a6a668c8db8dedc1792ae82b4c422079e Parents: 855f668 Author: Lukasz Lenart <[email protected]> Authored: Mon Jan 2 09:36:25 2017 +0100 Committer: Lukasz Lenart <[email protected]> Committed: Mon Jan 2 09:36:25 2017 +0100 ---------------------------------------------------------------------- wildcard-method-selection/src/main/resources/struts.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts-examples/blob/06ddc54a/wildcard-method-selection/src/main/resources/struts.xml ---------------------------------------------------------------------- diff --git a/wildcard-method-selection/src/main/resources/struts.xml b/wildcard-method-selection/src/main/resources/struts.xml index 9aab5c6..ede0585 100644 --- a/wildcard-method-selection/src/main/resources/struts.xml +++ b/wildcard-method-selection/src/main/resources/struts.xml @@ -5,10 +5,9 @@ <struts> - <constant name="struts.devMode" value="true" /> + <constant name="struts.devMode" value="false" /> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> - <package name="wildcardmethodexample" extends="struts-default"> <!-- Whatever value is before Person for the name of @@ -19,11 +18,13 @@ <action name="*Person" class="org.apache.struts.tutorials.wildcardmethod.action.PersonAction" method="{1}"> <result name="success">view.jsp</result> <result name="input">input.jsp</result> + <allowed-methods>create,edit,saveOrUpdate,delete</allowed-methods> </action> <action name="person!*" class="org.apache.struts.tutorials.wildcardmethod.action.PersonAction" method="run{1}This"> <result name="success">view.jsp</result> <result name="input">input.jsp</result> + <allowed-methods>runCreateThis</allowed-methods> </action> </package>
