| <?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="logonForm" type="examples.app3.LogonForm" /> |
| </form-beans> |
| <global-forwards> |
| <forward name="welcome_jsp" path="/welcome_jsp.do" /> |
| <forward name="logon_jsp" path="/logon_jsp.do" /> |
| <forward name="logoff_jsp" path="/logoff_jsp.do" /> |
| <forward name="index_jsp_src" path="/index_jsp.txt" /> |
| <forward name="logon_jsp_src" path="/logon_jsp.txt" /> |
| <forward name="welcome_vm" path="/welcome_vm.do" /> |
| <forward name="logon_vm" path="/logon_vm.do" /> |
| <forward name="logoff_vm" path="/logoff_vm.do" /> |
| <forward name="index_vm_src" path="/index_vm.txt" /> |
| <forward name="logon_vm_src" path="/logon_vm.txt" /> |
| </global-forwards> |
| <action-mappings> |
| <action forward="/index.jsp" path="/welcome_jsp" /> |
| <action name="logonForm" forward="/logon.jsp" path="/logon_jsp" scope="request" validate="false" /> |
| <action input="/logon.jsp" name="logonForm" path="/logonSubmit_jsp" scope="request" type="examples.app3.LogonAction" validate="true"> |
| <forward name="continue" path="/index.jsp" /> |
| </action> |
| <action path="/logoff_jsp" type="examples.app3.LogoffAction"> |
| <forward name="continue" path="/index.jsp" /> |
| </action> |
| <action forward="/index.vm" path="/welcome_vm" /> |
| <action name="logonForm" forward="/logon.vm" path="/logon_vm" scope="request" validate="false" /> |
| <action input="/logon.vm" name="logonForm" path="/logonSubmit_vm" scope="request" type="examples.app3.LogonAction" validate="true"> |
| <forward name="continue" path="/index.vm" /> |
| </action> |
| <action path="/logoff_vm" type="examples.app3.LogoffAction"> |
| <forward name="continue" path="/index.vm" /> |
| </action> |
| </action-mappings> |
| <message-resources parameter="examples.app3.ApplicationResources" /> |
| </struts-config> |