001 <?xml version="1.0" encoding="ISO-8859-1" ?>
002 <!DOCTYPE struts-config PUBLIC
003 "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
004 "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
005
006 <struts-config>
007
008 <!-- F O R M B E A N S -->
009 <form-beans>
010 <form-bean
011 name="userBean"
012 type="com.bea.medrec.beans.UserBean"/>
013
014 <form-bean
015 name="patientBean"
016 type="com.bea.medrec.beans.PatientBean"/>
017
018 <form-bean
019 name="addressBean"
020 type="com.bea.medrec.beans.AddressBean"/>
021
022 <form-bean
023 name="registrationBean"
024 type="com.bea.medrec.beans.RegistrationBean"/>
025 </form-beans>
026
027 <!-- G L O B A L F O R W A R D S -->
028 <global-forwards>
029 <forward name="medrec.startpage" path="http://localhost:7101/start.jsp" redirect="true"/>
030 <forward name="error" path="/Error.jsp"/>
031 <forward name="home" path="/medicalrecord.do" redirect="true"/>
032 <forward name="login.home.redirect" path="/login.do" redirect="true"/>
033 </global-forwards>
034
035 <!-- A C T I O N M A P P I N G S -->
036 <action-mappings type="org.apache.struts.config.SecureActionConfig">
037
038 <action
039 path="/editprofile"
040 type="com.bea.medrec.actions.EditProfileAction"
041 name="patientBean"
042 scope="request"
043 input="/EditProfile.jsp"
044 parameter="action"
045 validate="true">
046 <set-property property="secure" value="true"/>
047 <forward name="validate.profile.failure" path="/EditProfile.jsp"/>
048 <forward name="edit.profile.success" path="/SavedProfile.jsp"/>
049 <forward name="edit.profile" path="/EditProfile.jsp"/>
050 <forward name="view.profile" path="/viewprofile.do"/>
051 </action>
052
053 <action
054 path="/error"
055 type="com.bea.medrec.actions.ErrorAction">
056 <set-property property="secure" value="false"/>
057 <forward name="error" path="/Error.jsp"/>
058 </action>
059
060 <action
061 path="/login"
062 type="com.bea.medrec.actions.LoginAction"
063 name="userBean"
064 scope="request"
065 input="/Login.jsp"
066 validate="true">
067 <set-property property="secure" value="true"/>
068 <forward name="login.home" path="/Login.jsp"/>
069 <forward name="login.success" path="/medicalrecord.do" redirect="true"/>
070 <forward name="login.failure" path="/Login.jsp"/>
071 </action>
072
073 <action
074 path="/logout"
075 type="com.bea.medrec.actions.LogoutAction">
076 <set-property property="secure" value="false"/>
077 <forward name="login.home" path="/login.do"/>
078 </action>
079
080 <action
081 path="/register"
082 type="com.bea.medrec.actions.RegisterAction"
083 name="registrationBean"
084 scope="request"
085 input="/Register.jsp"
086 parameter="action"
087 validate="true">
088 <set-property property="secure" value="true"/>
089 <forward name="register.home" path="/Register.jsp"/>
090 <forward name="validate.registration.failure" path="/Register.jsp"/>
091 <forward name="register.success" path="/RegistrationSuccessful.jsp"/>
092 <forward name="register.failure" path="/RegistrationFailure.jsp"/>
093 </action>
094
095 <action
096 path="/viewprofile"
097 type="com.bea.medrec.actions.ViewProfileAction">
098 <set-property property="secure" value="true"/>
099 <forward name="view.profile" path="/ViewProfile.jsp"/>
100 </action>
101
102 <action
103 path="/medicalrecord"
104 type="com.bea.medrec.actions.ViewRecordsSummaryAction">
105 <set-property property="secure" value="true"/>
106 <forward name="view.records.summary" path="/ViewRecords.jsp"/>
107 </action>
108
109 <action
110 path="/record"
111 type="com.bea.medrec.actions.ViewRecordAction">
112 <set-property property="secure" value="true"/>
113 <forward name="view.records.summary" path="/medicalrecord.do"/>
114 <forward name="view.record" path="/ViewRecord.jsp"/>
115 </action>
116 </action-mappings>
117
118 <!-- C O N T R O L L E R -->
119 <controller>
120 <set-property property="debug" value="2"/>
121 <set-property property="nocache" value="true"/>
122 </controller>
123
124 <!-- M E S S A G E R E S O U R C E S -->
125 <message-resources
126 parameter="com.bea.medrec.utils.ApplicationResources"/>
127
128 <!-- P L U G - I N S -->
129 <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
130 <set-property property="pathnames"
131 value="/WEB-INF/validator-rules.xml,
132 /WEB-INF/validation.xml"/>
133 </plug-in>
134
135 <plug-in className="org.apache.struts.action.SecurePlugIn">
136 <set-property property="httpPort" value="7101"/>
137 <set-property property="httpsPort" value="7102"/>
138 <set-property property="enable" value="true"/>
139 <set-property property="addSession" value="true"/>
140 </plug-in>
141
142 </struts-config>
|