1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE struts PUBLIC
3 "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
4 "http://struts.apache.org/dtds/struts-2.3.dtd">
8 <constant name="struts.objectFactory" value="spring" />
9 <constant name="struts.enable.DynamicMethodInvocation" value="false" />
10 <constant name="struts.devMode" value="true" />
11 <constant name="struts.custom.i18n.resources" value="labels,som" />
12 <constant name="struts.i18n.encoding" value="ISO-8859-1" />
14 <package name="simer-default" namespace="/" extends="struts-default">
17 <package name="default" namespace="/" extends="simer-default">
19 <default-action-ref name="index" />
21 <action name="index" class="org.splat.simer.StartAction" method="initialize">
22 <result name="success">/welcome.jsp</result>
23 <result name="error">/error.jsp?error=initialization</result>
25 <action name="login" class="org.splat.simer.ConnectionAction" method="login">
26 <result name="none">/home.jsp</result>
27 <result name="open" type="redirectAction">select?menu=search</result>
28 <result name="study" type="redirectAction">study/step-study</result>
29 <result name="knowledge" type="redirectAction">study/step-knowledge</result>
30 <result name="input">/login.jsp</result>
31 <result name="error">/home.jsp?error=login</result>
33 <action name="logout" class="org.splat.simer.ConnectionAction" method="logout">
34 <result name="none">/home.jsp</result>
35 <result name="create">/home.jsp</result>
36 <result name="open" type="redirectAction">select?menu=search</result>
37 <result name="study" type="redirectAction">study/step-study</result>
38 <result name="knowledge" type="redirectAction">study/step-knowledge</result>
39 <result name="datadmin">/home.jsp</result>
40 <result name="sysadmin">/home.jsp</result>
42 <action name="select" class="org.splat.simer.MenuAction" method="selectItem">
43 <result name="new-empty" type="redirectAction">study/new-empty</result>
44 <result name="search-study" type="redirectAction">study/search-study</result>
45 <result name="search-knowledge" type="redirectAction">study/search-knowledge</result>
46 <result name="search-document" type="redirectAction">study/search-document</result>
47 <result name="prop-general" type="redirectAction">study/prop-study</result>
48 <result name="prop-scenario" type="redirectAction">study/prop-scenario</result>
49 <result name="admin-indexing" type="redirectAction">sadmin/indexing</result>
50 <result name="admin-importuser" type="redirectAction">sadmin/select-file?nextAction=importuser</result>
51 <result name="admin-scontext" type="redirectAction">sadmin/scontext</result>
52 <result name="admin-knowelm" type="redirectAction">sadmin/knowlelm</result>
53 <result name="none">/menu.jsp?menu=%{menu}</result>
58 <package name="study" namespace="/study" extends="simer-default">
60 <action name="notyetimplemented" class="org.splat.simer.NotYetImplementedAction" method="initialize">
61 <result name="success">/study/error.jsp?message=notyetimplemented</result>
64 <!-- Creation of a study
66 <action name="new-empty" class="org.splat.simer.NewStudyAction" method="initialize">
67 <result name="success">/study/newStudy.jsp</result>
69 <action name="valid-new" class="org.splat.simer.NewStudyAction" method="create">
70 <result name="success" type="redirectAction">open-study?selection=0.1</result>
71 <result name="input">/study/newStudy.jsp</result>
72 <result name="error">/home.jsp?error=newstudy</result>
75 <!-- Search for studies, knowledge elements and documents
77 <action name="search-study" class="org.splat.simer.SearchStudyAction" method="initialize">
78 <result name="success">/study/searchStudy.jsp</result>
79 <result name="error">/home.jsp</result>
81 <action name="refresh-study" class="org.splat.simer.SearchStudyAction" method="submitForm">
82 <result name="selectype">/study/searchStudy.jsp?action=setContext</result>
83 <result name="refresh">/study/searchStudy.jsp</result>
84 <result name="wait">/study/searchStudy.jsp</result>
85 <result name="error" type="redirectAction">search-study</result>
88 <action name="search-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="initialize">
89 <result name="success">/study/searchKnowledge.jsp</result>
91 <action name="refresh-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="submitForm">
92 <result name="selectype">/study/searchKnowledge.jsp?action=setContext</result>
93 <result name="refresh">/study/searchKnowledge.jsp</result>
94 <result name="wait">/study/searchKnowledge.jsp</result>
95 <result name="error" type="redirectAction">search-knowledge</result>
98 <action name="search-document" class="org.splat.simer.SearchDocumentAction" method="initialize">
99 <result name="success">/study/searchDocument.jsp</result>
102 <!-- Display of studies
104 <action name="open-study" class="org.splat.simer.DisplayStudyStepAction" method="open">
105 <result name="success">/study/displayStudyStep.jsp</result>
107 <action name="step-study" class="org.splat.simer.DisplayStudyStepAction" method="selectStep">
108 <result name="success">/study/displayStudyStep.jsp</result>
110 <action name="document-study" class="org.splat.simer.DisplayStudyStepAction" method="selectDocument">
111 <result name="success">/study/displayStudyStep.jsp</result>
113 <action name="knowledge-study" class="org.splat.simer.DisplayStudyStepAction" method="selectKnowledge">
114 <result name="success">/study/displayStudyStep.jsp</result>
116 <action name="close-study" class="org.splat.simer.DisplayStudyStepAction" method="close">
117 <result name="success">/home.jsp</result>
119 <action name="prop-study" class="org.splat.simer.StudyPropertiesAction" method="initialize">
120 <result name="display">/study/displayStudyProperties.jsp</result>
121 <result name="edit">/study/editStudyProperties.jsp</result>
124 <!-- Display of knowledge elements
126 <action name="open-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="open">
127 <result name="success">/study/displayKnowledge.jsp</result>
129 <action name="step-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectStep">
130 <result name="success">/study/displayKnowledge.jsp</result>
132 <action name="document-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectDocument">
133 <result name="success">/study/displayKnowledge.jsp</result>
135 <action name="knowledge-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectKnowledge">
136 <result name="success">/study/displayKnowledge.jsp</result>
138 <action name="close-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="close">
139 <result name="success">/home.jsp</result>
142 <!-- Edition of study
144 <action name="edit-study" class="org.splat.simer.EditStudyAction" method="edition">
145 <result name="success">/study/displayStudyStep.jsp</result>
147 <action name="add-scenario" class="org.splat.simer.NewScenarioAction" method="initialize">
148 <result name="success">/study/newScenario.jsp?init=focus</result>
150 <action name="edit-title" class="org.splat.simer.StudyPropertiesAction" method="editTitle">
151 <result name="success">/study/editStudyProperties.jsp?action=edititle</result>
153 <action name="edit-contributor" class="org.splat.simer.StudyPropertiesAction" method="editContributors">
154 <result name="success">/study/editStudyProperties.jsp?action=edibutor</result>
156 <action name="edit-cycle" class="org.splat.simer.StudyPropertiesAction" method="editCycle">
157 <result name="success">/study/editStudyProperties.jsp?action=edicycle</result>
159 <action name="select-step" class="org.splat.simer.NewScenarioAction" method="selectStep">
160 <result name="success">/study/newScenario.jsp</result>
162 <action name="valid-add" class="org.splat.simer.NewScenarioAction" method="create">
163 <result name="cancel" type="redirectAction">step-study</result>
164 <result name="success" type="redirectAction">step-study</result>
165 <result name="error">/study/displayStudyStep.jsp?error=addScenario</result>
167 <action name="valid-edit" class="org.splat.simer.StudyPropertiesAction" method="edition">
168 <result name="success">/study/editStudyProperties.jsp</result>
170 <action name="prop-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="initialize">
171 <result name="success">/study/editScenarioProperties.jsp</result>
174 <!-- Edition of scenario
176 <action name="checkin-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="checkin">
177 <result name="success">/study/displayStudyStep.jsp</result>
180 <!-- Edition of simulation contexts
182 <action name="add-context" class="org.splat.simer.EditSimulationContextAction" method="initialize">
183 <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
184 <result name="select">/study/displayStudyStep.jsp?action=selectContext</result>
186 <action name="selectContext" class="org.splat.simer.EditSimulationContextAction" method="selectContext">
187 <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
188 <result name="set">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
190 <action name="newContext" class="org.splat.simer.EditSimulationContextAction" method="createContext">
191 <result name="success">/study/displayStudyStep.jsp</result>
192 <result name="input">/study/displayStudyStep.jsp?action=newContext</result>
193 <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
195 <action name="setContext" class="org.splat.simer.EditSimulationContextAction" method="setContext">
196 <result name="success">/study/displayStudyStep.jsp</result>
197 <result name="input">/study/displayStudyStep.jsp?action=setContext&index=%{contextType.index}</result>
198 <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
200 <action name="remove-context" class="org.splat.simer.EditSimulationContextAction" method="deleteContext">
201 <result name="success">/study/displayStudyStep.jsp</result>
202 <result name="error">/study/displayStudyStep.jsp?error=removeContext</result>
205 <!-- Edition of documents
207 <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
208 <result name="success">/study/upload.jsp</result>
210 <action name="upload" class="org.splat.simer.UploadAction" method="upload">
211 <result name="cancel" type="redirectAction">step-study</result>
212 <result name="import" type="redirectAction">import-document?fileName=%{fileName}</result>
213 <result name="version" type="redirectAction">version-document?index=%{index}&fileName=%{fileName}</result>
214 <result name="attach" type="redirectAction">attach-document?index=%{index}&fileName=%{fileName}</result>
215 <result name="outofmemory">/study/error.jsp?message=outofmemory</result>
217 <action name="import-document" class="org.splat.simer.ImportDocumentAction" method="initialize">
218 <result name="success">/study/importDocument.jsp</result>
219 <result name="error">/study/importError.jsp?message=%{errorCode}</result>
221 <action name="valid-import" class="org.splat.simer.ImportDocumentAction" method="import">
222 <result name="success" type="redirectAction">step-study</result>
223 <result name="cancel" type="redirectAction">step-study</result>
224 <result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
226 <action name="version-document" class="org.splat.simer.VersionDocumentAction" method="initialize">
227 <result name="success">/study/versionDocument.jsp</result>
228 <result name="error">/study/importError.jsp?message=%{errorCode}</result>
230 <action name="valid-version" class="org.splat.simer.VersionDocumentAction" method="version">
231 <result name="success" type="redirectAction">step-study</result>
232 <result name="cancel" type="redirectAction">step-study</result>
233 <result name="error">/study/importError.jsp?message=%{errorCode}&action=back</result>
235 <action name="attach-document" class="org.splat.simer.EditDocumentAction" method="attach">
236 <result name="success">/study/displayStudyStep.jsp?action=display</result>
238 <action name="edit-document" class="org.splat.simer.EditDocumentAction" method="initialize">
239 <result name="success">/study/displayStudyStep.jsp</result>
241 <action name="setDocument" class="org.splat.simer.EditDocumentAction" method="setDocument">
242 <result name="success">/study/displayStudyStep.jsp?action=display</result>
244 <action name="remove-document" class="org.splat.simer.EditDocumentAction" method="deleteDocument">
245 <result name="success">/study/displayStudyStep.jsp</result>
246 <result name="error">/study/displayStudyStep.jsp?error=removeDocument</result>
249 <!-- Edition of knowledge elements
251 <action name="add-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
252 <result name="success">/study/displayStudyStep.jsp?action=addKnowledge&index=%{knowledgeType}</result>
254 <action name="edit-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
255 <result name="success">/study/displayStudyStep.jsp</result>
257 <action name="setKnowledge" class="org.splat.simer.EditKnowledgeElementAction" method="setKnowledge">
258 <result name="success">/study/displayStudyStep.jsp?action=display</result>
260 <action name="remove-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="deleteKnowledge">
261 <result name="success">/study/displayStudyStep.jsp</result>
262 <result name="error">/study/displayStudyStep.jsp?error=removeKnowledge</result>
268 <package name="sadmin" namespace="/sadmin" extends="simer-default">
270 <!-- Menus of database administration
272 <action name="indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="initialize">
273 <result name="success">/sadmin/indexStudies.jsp</result>
275 <action name="valid-indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="indexing">
276 <result name="success" type="redirectAction">../study/search-study</result>
278 <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
279 <result name="success">/sadmin/upload.jsp</result>
281 <action name="upload" class="org.splat.simer.UploadAction" method="upload">
282 <result name="importuser" type="redirectAction">importuser?fileName=%{fileName}</result>
284 <action name="importuser" class="org.splat.simer.admin.ImportUserAction" method="import">
285 <result name="success">/sadmin/displayUser.jsp</result>
288 <!-- Menus of knowledge administration
290 <action name="scontext" class="org.splat.simer.admin.SimulationContextAction" method="initialize">
291 <result name="success">/sadmin/approveSContext.jsp</result>
293 <action name="scontext-edit" class="org.splat.simer.admin.SimulationContextAction" method="select">
294 <result name="success">/sadmin/approveSContext.jsp</result>
296 <action name="knowelm" class="org.splat.simer.admin.KnowledgeElementAction" method="initialize">
297 <result name="success">/sadmin/approveKnowelm.jsp</result>
301 <package name="sgeom" namespace="/sgeom" extends="simer-default">
303 <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
304 <result name="success">/sgeom/index.jsp</result>
306 <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
307 <result name="success">/sgeom/index.jsp</result>
309 <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
310 <result name="success">/sgeom/index.jsp</result>
316 <package name="smesh" namespace="/smesh" extends="simer-default">
318 <action name="valid-save" class="org.splat.module.SaveDocumentAction" method="save">
319 <result name="success">/smesh/index.jsp</result>
321 <action name="valid-update" class="org.splat.module.SaveDocumentAction" method="update">
322 <result name="success">/smesh/index.jsp</result>
324 <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
325 <result name="success">/smesh/index.jsp</result>