| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <struts-config> |
| <form-beans> |
| <form-bean name="testForm" type="org.apache.struts.action.DynaActionForm"> |
| <form-property name="propA" type="java.lang.String" /> |
| <form-property name="propB" type="java.lang.String" /> |
| </form-bean> |
| </form-beans> |
| <action-mappings type="org.apache.struts.config.SecureActionConfig"> |
| <action forward=".true" path="/true"> |
| <set-property property="secure" value="true" /> |
| </action> |
| <action forward=".false" path="/false"> |
| <set-property property="secure" value="false" /> |
| </action> |
| <action forward=".any" path="/any"> |
| <set-property property="secure" value="any" /> |
| </action> |
| <action name="testForm" forward=".submitted" path="/secureSubmit"> |
| <set-property property="secure" value="true" /> |
| </action> |
| <action name="testForm" forward=".submitted" path="/nonsecureSubmit"> |
| <set-property property="secure" value="false" /> |
| </action> |
| <action forward=".form" path="/formAction"> |
| <set-property property="secure" value="false" /> |
| </action> |
| <action forward=".true.jsp" path="/true_jsp"> |
| <set-property property="secure" value="true" /> |
| </action> |
| <action forward=".false.jsp" path="/false_jsp"> |
| <set-property property="secure" value="false" /> |
| </action> |
| <action forward=".any.jsp" path="/any_jsp"> |
| <set-property property="secure" value="any" /> |
| </action> |
| <action name="testForm" forward=".submitted.jsp" path="/secureSubmit_jsp"> |
| <set-property property="secure" value="true" /> |
| </action> |
| <action name="testForm" forward=".submitted.jsp" path="/nonsecureSubmit_jsp"> |
| <set-property property="secure" value="false" /> |
| </action> |
| <action forward=".form.jsp" path="/formAction_jsp"> |
| <set-property property="secure" value="false" /> |
| </action> |
| </action-mappings> |
| <controller processorClass="org.apache.struts.action.SecureTilesRequestProcessor"/> |
| <plug-in className="org.apache.struts.tiles.SecureTilesPlugin"> |
| <set-property property="httpPort" value="8080" /> |
| <set-property property="httpsPort" value="8443" /> |
| <set-property property="enable" value="true" /> |
| <set-property property="addSession" value="true" /> |
| <set-property property="definitions-config" value="/WEB-INF/tiles-app7-defs.xml" /> |
| <set-property property="definitions-debug" value="1" /> |
| <set-property property="moduleAware" value="true" /> |
| <set-property property="definitions-parser-details" value="0" /> |
| <set-property property="definitions-parser-validate" value="true" /> |
| </plug-in> |
| </struts-config> |