1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE struts PUBLIC
3 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
4 "http://struts.apache.org/dtds/struts-2.0.dtd">
7 <constant name="struts.objectFactory" value="spring" />
8 <constant name="struts.enable.DynamicMethodInvocation" value="false" />
9 <constant name="struts.devMode" value="true" />
10 <constant name="struts.custom.i18n.resources" value="labels,som" />
11 <constant name="struts.i18n.encoding" value="ISO-8859-1" />
13 <package name="simer-default" namespace="/" extends="struts-default">
16 <package name="default" namespace="/" extends="simer-default">
18 <default-action-ref name="index" />
20 <action name="index" class="org.splat.simer.StartAction" method="initialize">
21 <result name="success">/welcome.jsp</result>
22 <result name="error">/error.jsp?error=initialization</result>
24 <action name="login" class="org.splat.simer.ConnectionAction" method="login">
25 <result name="none">/home.jsp</result>
26 <result name="open" type="redirectAction">select?menu=search</result>
27 <result name="study" type="redirectAction">study/step-study</result>
28 <result name="knowledge" type="redirectAction">study/step-knowledge</result>
29 <result name="input">/login.jsp</result>
30 <result name="error">/home.jsp?error=login</result>
32 <action name="logout" class="org.splat.simer.ConnectionAction" method="logout">
33 <result name="none">/home.jsp</result>
34 <result name="create">/home.jsp</result>
35 <result name="open" type="redirectAction">select?menu=search</result>
36 <result name="study" type="redirectAction">study/step-study</result>
37 <result name="knowledge" type="redirectAction">study/step-knowledge</result>
38 <result name="datadmin">/home.jsp</result>
39 <result name="sysadmin">/home.jsp</result>
41 <action name="select" class="org.splat.simer.MenuAction" method="selectItem">
42 <result name="new-empty" type="redirectAction">study/new-empty</result>
43 <result name="search-study" type="redirectAction">study/search-study</result>
44 <result name="search-knowledge" type="redirectAction">study/search-knowledge</result>
45 <result name="search-document" type="redirectAction">study/search-document</result>
46 <result name="prop-general" type="redirectAction">study/prop-study</result>
47 <result name="prop-scenario" type="redirectAction">study/prop-scenario</result>
48 <result name="admin-indexing" type="redirectAction">sadmin/indexing</result>
49 <result name="admin-importuser" type="redirectAction">sadmin/select-file?nextAction=importuser</result>
50 <result name="admin-scontext" type="redirectAction">sadmin/scontext</result>
51 <result name="admin-knowelm" type="redirectAction">sadmin/knowlelm</result>
52 <result name="none">/menu.jsp?menu=%{menu}</result>
57 <package name="study" namespace="/study" extends="simer-default">
59 <action name="notyetimplemented" class="org.splat.simer.NotYetImplementedAction" method="initialize">
60 <result name="success">/study/error.jsp?message=notyetimplemented</result>
63 <!-- Creation of a study
65 <action name="new-empty" class="org.splat.simer.NewStudyAction" method="initialize">
66 <result name="success">/study/newStudy.jsp</result>
68 <action name="valid-new" class="org.splat.simer.NewStudyAction" method="create">
69 <result name="success" type="redirectAction">open-study?selection=0.1</result>
70 <result name="input">/study/newStudy.jsp</result>
71 <result name="error">/home.jsp?error=newstudy</result>
74 <!-- Search for studies, knowledge elements and documents
76 <action name="search-study" class="org.splat.simer.SearchStudyAction" method="initialize">
77 <result name="success">/study/searchStudy.jsp</result>
78 <result name="error">/home.jsp</result>
80 <action name="refresh-study" class="org.splat.simer.SearchStudyAction" method="submitForm">
81 <result name="selectype">/study/searchStudy.jsp?action=setContext</result>
82 <result name="refresh">/study/searchStudy.jsp</result>
83 <result name="wait">/study/searchStudy.jsp</result>
84 <result name="error" type="redirectAction">search-study</result>
87 <action name="search-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="initialize">
88 <result name="success">/study/searchKnowledge.jsp</result>
90 <action name="refresh-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="submitForm">
91 <result name="selectype">/study/searchKnowledge.jsp?action=setContext</result>
92 <result name="refresh">/study/searchKnowledge.jsp</result>
93 <result name="wait">/study/searchKnowledge.jsp</result>
94 <result name="error" type="redirectAction">search-knowledge</result>
97 <action name="search-document" class="org.splat.simer.SearchDocumentAction" method="initialize">
98 <result name="success">/study/searchDocument.jsp</result>
101 <!-- Display of studies
103 <action name="open-study" class="org.splat.simer.DisplayStudyStepAction" method="open">
104 <result name="success">/study/displayStudyStep.jsp</result>
106 <action name="step-study" class="org.splat.simer.DisplayStudyStepAction" method="selectStep">
107 <result name="success">/study/displayStudyStep.jsp</result>
109 <action name="document-study" class="org.splat.simer.DisplayStudyStepAction" method="selectDocument">
110 <result name="success">/study/displayStudyStep.jsp</result>
112 <action name="knowledge-study" class="org.splat.simer.DisplayStudyStepAction" method="selectKnowledge">
113 <result name="success">/study/displayStudyStep.jsp</result>
115 <action name="close-study" class="org.splat.simer.DisplayStudyStepAction" method="close">
116 <result name="success">/home.jsp</result>
118 <action name="prop-study" class="org.splat.simer.StudyPropertiesAction" method="initialize">
119 <result name="display">/study/displayStudyProperties.jsp</result>
120 <result name="edit">/study/editStudyProperties.jsp</result>
123 <!-- Display of knowledge elements
125 <action name="open-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="open">
126 <result name="success">/study/displayKnowledge.jsp</result>
128 <action name="step-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectStep">
129 <result name="success">/study/displayKnowledge.jsp</result>
131 <action name="document-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectDocument">
132 <result name="success">/study/displayKnowledge.jsp</result>
134 <action name="knowledge-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectKnowledge">
135 <result name="success">/study/displayKnowledge.jsp</result>
137 <action name="close-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="close">
138 <result name="success">/home.jsp</result>
141 <!-- Edition of study
143 <action name="edit-study" class="org.splat.simer.EditStudyAction" method="edition">
144 <result name="success">/study/displayStudyStep.jsp</result>
146 <action name="add-scenario" class="org.splat.simer.NewScenarioAction" method="initialize">
147 <result name="success">/study/newScenario.jsp?init=focus</result>
149 <action name="edit-title" class="org.splat.simer.StudyPropertiesAction" method="editTitle">
150 <result name="success">/study/editStudyProperties.jsp?action=edititle</result>
152 <action name="edit-contributor" class="org.splat.simer.StudyPropertiesAction" method="editContributors">
153 <result name="success">/study/editStudyProperties.jsp?action=edibutor</result>
155 <action name="edit-cycle" class="org.splat.simer.StudyPropertiesAction" method="editCycle">
156 <result name="success">/study/editStudyProperties.jsp?action=edicycle</result>
158 <action name="select-step" class="org.splat.simer.NewScenarioAction" method="selectStep">
159 <result name="success">/study/newScenario.jsp</result>
161 <action name="valid-add" class="org.splat.simer.NewScenarioAction" method="create">
162 <result name="cancel" type="redirectAction">step-study</result>
163 <result name="success" type="redirectAction">step-study</result>
164 <result name="error">/study/displayStudyStep.jsp?error=addScenario</result>
166 <action name="valid-edit" class="org.splat.simer.StudyPropertiesAction" method="edition">
167 <result name="success">/study/editStudyProperties.jsp</result>
169 <action name="prop-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="initialize">
170 <result name="success">/study/editScenarioProperties.jsp</result>
173 <!-- Edition of scenario
175 <action name="checkin-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="checkin">
176 <result name="success">/study/displayStudyStep.jsp</result>
179 <!-- Edition of simulation contexts
181 <action name="add-context" class="org.splat.simer.EditSimulationContextAction" method="initialize">
182 <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
183 <result name="select">/study/displayStudyStep.jsp?action=selectContext</result>
185 <action name="selectContext" class="org.splat.simer.EditSimulationContextAction" method="selectContext">
186 <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
187 <result name="set">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
189 <action name="newContext" class="org.splat.simer.EditSimulationContextAction" method="createContext">
190 <result name="success">/study/displayStudyStep.jsp</result>
191 <result name="input">/study/displayStudyStep.jsp?action=newContext</result>
192 <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
194 <action name="setContext" class="org.splat.simer.EditSimulationContextAction" method="setContext">
195 <result name="success">/study/displayStudyStep.jsp</result>
196 <result name="input">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
197 <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
199 <action name="remove-context" class="org.splat.simer.EditSimulationContextAction" method="deleteContext">
200 <result name="success">/study/displayStudyStep.jsp</result>
201 <result name="error">/study/displayStudyStep.jsp?error=removeContext</result>
204 <!-- Edition of documents
206 <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
207 <result name="success">/study/upload.jsp</result>
209 <action name="upload" class="org.splat.simer.UploadAction" method="upload">
210 <result name="cancel" type="redirectAction">step-study</result>
211 <result name="import" type="redirectAction">import-document?fileName=%{fileName}</result>
212 <result name="version" type="redirectAction">version-document?index=%{index}&fileName=%{fileName}</result>
213 <result name="attach" type="redirectAction">attach-document?index=%{index}&fileName=%{fileName}</result>
214 <result name="outofmemory">/study/error.jsp?message=outofmemory</result>
216 <action name="import-document" class="org.splat.simer.ImportDocumentAction" method="initialize">
217 <result name="success">/study/importDocument.jsp</result>
218 <result name="error">/study/importError.jsp?message=%{errorCode}</result>
220 <action name="valid-import" class="org.splat.simer.ImportDocumentAction" method="import">
221 <result name="success" type="redirectAction">step-study</result>
222 <result name="cancel" type="redirectAction">step-study</result>
223 <result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
225 <action name="version-document" class="org.splat.simer.VersionDocumentAction" method="initialize">
226 <result name="success">/study/versionDocument.jsp</result>
227 <result name="error">/study/importError.jsp?message=%{errorCode}</result>
229 <action name="valid-version" class="org.splat.simer.VersionDocumentAction" method="version">
230 <result name="success" type="redirectAction">step-study</result>
231 <result name="cancel" type="redirectAction">step-study</result>
232 <result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
234 <action name="attach-document" class="org.splat.simer.EditDocumentAction" method="attach">
235 <result name="success">/study/displayStudyStep.jsp?action=display</result>
237 <action name="edit-document" class="org.splat.simer.EditDocumentAction" method="initialize">
238 <result name="success">/study/displayStudyStep.jsp</result>
240 <action name="setDocument" class="org.splat.simer.EditDocumentAction" method="setDocument">
241 <result name="success">/study/displayStudyStep.jsp?action=display</result>
243 <action name="remove-document" class="org.splat.simer.EditDocumentAction" method="deleteDocument">
244 <result name="success">/study/displayStudyStep.jsp</result>
245 <result name="error">/study/displayStudyStep.jsp?error=removeDocument</result>
248 <!-- Edition of knowledge elements
250 <action name="add-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
251 <result name="success">/study/displayStudyStep.jsp?action=addKnowledge&index=%{knowledgeType}</result>
253 <action name="edit-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
254 <result name="success">/study/displayStudyStep.jsp</result>
256 <action name="setKnowledge" class="org.splat.simer.EditKnowledgeElementAction" method="setKnowledge">
257 <result name="success">/study/displayStudyStep.jsp?action=display</result>
259 <action name="remove-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="deleteKnowledge">
260 <result name="success">/study/displayStudyStep.jsp</result>
261 <result name="error">/study/displayStudyStep.jsp?error=removeKnowledge</result>
267 <package name="sadmin" namespace="/sadmin" extends="simer-default">
269 <!-- Menus of database administration
271 <action name="indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="initialize">
272 <result name="success">/sadmin/indexStudies.jsp</result>
274 <action name="valid-indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="indexing">
275 <result name="success" type="redirectAction">../study/search-study</result>
277 <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
278 <result name="success">/sadmin/upload.jsp</result>
280 <action name="upload" class="org.splat.simer.UploadAction" method="upload">
281 <result name="importuser" type="redirectAction">importuser?fileName=%{fileName}</result>
283 <action name="importuser" class="org.splat.simer.admin.ImportUserAction" method="import">
284 <result name="success">/sadmin/displayUser.jsp</result>
287 <!-- Menus of knowledge administration
289 <action name="scontext" class="org.splat.simer.admin.SimulationContextAction" method="initialize">
290 <result name="success">/sadmin/approveSContext.jsp</result>
292 <action name="scontext-edit" class="org.splat.simer.admin.SimulationContextAction" method="select">
293 <result name="success">/sadmin/approveSContext.jsp</result>
295 <action name="knowelm" class="org.splat.simer.admin.KnowledgeElementAction" method="initialize">
296 <result name="success">/sadmin/approveKnowelm.jsp</result>
300 <package name="sgeom" namespace="/sgeom" extends="simer-default">
302 <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
303 <result name="success">/sgeom/index.jsp</result>
305 <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
306 <result name="success">/sgeom/index.jsp</result>
308 <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
309 <result name="success">/sgeom/index.jsp</result>
315 <package name="smesh" namespace="/smesh" extends="simer-default">
317 <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
318 <result name="success">/smesh/index.jsp</result>
320 <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
321 <result name="success">/smesh/index.jsp</result>
323 <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
324 <result name="success">/smesh/index.jsp</result>