WW-4540 Enable Strict DMI be default - Add to global allowed methods to rest showcase configuration
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/a6241552 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/a6241552 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/a6241552 Branch: refs/heads/master Commit: a6241552b67986056da32a70ae75d69c5c40a878 Parents: ecde389 Author: Johannes Geppert <jo...@apache.org> Authored: Mon Oct 5 21:25:06 2015 +0200 Committer: Johannes Geppert <jo...@apache.org> Committed: Mon Oct 5 21:25:06 2015 +0200 ---------------------------------------------------------------------- apps/rest-showcase/src/main/resources/struts.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/a6241552/apps/rest-showcase/src/main/resources/struts.xml ---------------------------------------------------------------------- diff --git a/apps/rest-showcase/src/main/resources/struts.xml b/apps/rest-showcase/src/main/resources/struts.xml index 3b4fc2c..16d0739 100644 --- a/apps/rest-showcase/src/main/resources/struts.xml +++ b/apps/rest-showcase/src/main/resources/struts.xml @@ -21,16 +21,20 @@ * under the License. */ --> - <!DOCTYPE struts PUBLIC - "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" - "http://struts.apache.org/dtds/struts-2.3.dtd"> + "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" + "http://struts.apache.org/dtds/struts-2.5.dtd"> + <struts> <!-- Overwrite Convention --> <constant name="struts.convention.action.suffix" value="Controller"/> <constant name="struts.convention.action.mapAllMatches" value="true"/> - <constant name="struts.convention.default.parent.package" value="rest-default"/> + <constant name="struts.convention.default.parent.package" value="rest-showcase"/> <constant name="struts.convention.package.locators" value="example"/> + + <package name="rest-showcase" extends="rest-default"> + <global-allowed-methods>index,show,create,update,destroy,deleteConfirm,edit,editNew</global-allowed-methods> + </package> </struts> \ No newline at end of file