]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
92ab6b7248a7eb3e9b32eb786d9ec5e07ac84c4e
[tools/siman.git] /
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">
5
6 <struts>
7
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" />
13
14     <package name="simer-default" namespace="/" extends="struts-default">
15         <global-results>
16                         <result name="exception" type="redirect">/index.action</result>
17         </global-results>
18         <global-exception-mappings>
19             <exception-mapping exception="java.lang.Exception" result="exception"/>
20         </global-exception-mappings>      
21     </package>
22
23     <package name="default" namespace="/" extends="simer-default">
24
25         <default-action-ref name="index" />
26
27         <action name="index" class="org.splat.simer.StartAction" method="initialize">
28             <result name="success">/welcome.jsp</result>
29             <result name="error">/error.jsp?error=initialization</result>
30         </action>        
31         <action name="login" class="org.splat.simer.ConnectionAction" method="login">
32             <result name="none">/home.jsp</result>
33             <result name="open"      type="redirectAction">select?menu=search</result>
34             <result name="study"     type="redirectAction">study/step-study</result>
35             <result name="knowledge" type="redirectAction">study/step-knowledge</result>
36             <result name="input">/login.jsp</result>
37             <result name="error">/home.jsp?error=login</result>
38         </action>
39         <action name="logout" class="org.splat.simer.ConnectionAction" method="logout">
40             <result name="none">/home.jsp</result>
41             <result name="create">/home.jsp</result>
42             <result name="open"      type="redirectAction">select?menu=search</result>
43             <result name="study"     type="redirectAction">study/step-study</result>
44             <result name="knowledge" type="redirectAction">study/step-knowledge</result>
45             <result name="datadmin">/home.jsp</result>
46             <result name="sysadmin">/home.jsp</result>
47         </action>
48         <action name="select" class="org.splat.simer.MenuAction" method="selectItem">
49             <result name="new-empty"        type="redirectAction">study/new-empty</result>
50             <result name="search-study"     type="redirectAction">study/search-study</result>
51             <result name="search-knowledge" type="redirectAction">study/search-knowledge</result>
52             <result name="search-document"  type="redirectAction">study/search-document</result>
53             <result name="prop-general"     type="redirectAction">study/prop-study</result>
54             <result name="prop-scenario"    type="redirectAction">study/prop-scenario</result>
55             <result name="admin-indexing"   type="redirectAction">sadmin/indexing</result>
56             <result name="admin-importuser" type="redirectAction">sadmin/select-file?nextAction=importuser</result>
57             <result name="admin-scontext"   type="redirectAction">sadmin/scontext</result>
58             <result name="admin-knowelm"    type="redirectAction">sadmin/knowlelm</result>
59             <result name="none">/menu.jsp?menu=%{menu}</result>
60         </action>
61
62     </package>
63
64     <package name="study" namespace="/study" extends="simer-default">
65
66         <action name="notyetimplemented" class="org.splat.simer.NotYetImplementedAction" method="initialize">
67             <result name="success">/study/error.jsp?message=notyetimplemented</result>
68         </action>
69
70         <!-- Creation of a study
71           -->        
72         <action name="new-empty" class="org.splat.simer.NewStudyAction" method="initialize">
73             <result name="success">/study/newStudy.jsp</result>
74         </action>
75         <action name="valid-new" class="org.splat.simer.NewStudyAction" method="create">
76             <result name="success" type="redirectAction">open-study?selection=0.1</result>
77             <result name="input">/study/newStudy.jsp</result>
78             <result name="error">/home.jsp?error=newstudy</result>
79         </action>
80
81         <!-- Search for studies, knowledge elements and documents
82           -->
83         <action name="search-study" class="org.splat.simer.SearchStudyAction" method="initialize">
84             <result name="success">/study/searchStudy.jsp</result>
85         </action>
86         <action name="refresh-study" class="org.splat.simer.SearchStudyAction" method="submitForm">
87             <result name="selectype">/study/searchStudy.jsp?action=setContext</result>
88             <result name="refresh">/study/searchStudy.jsp</result>
89             <result name="wait">/study/searchStudy.jsp</result>
90             <result name="error" type="redirectAction">search-study</result>
91         </action>
92
93         <action name="search-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="initialize">
94             <result name="success">/study/searchKnowledge.jsp</result>
95         </action>
96         <action name="refresh-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="submitForm">
97             <result name="selectype">/study/searchKnowledge.jsp?action=setContext</result>
98             <result name="refresh">/study/searchKnowledge.jsp</result>
99             <result name="wait">/study/searchKnowledge.jsp</result>
100             <result name="error" type="redirectAction">search-knowledge</result>
101         </action>
102
103         <action name="search-document" class="org.splat.simer.SearchDocumentAction" method="initialize">
104             <result name="success">/study/searchDocument.jsp</result>
105         </action>
106
107         <!-- Display of studies
108           -->
109         <action name="open-study" class="org.splat.simer.DisplayStudyStepAction" method="open">
110             <result name="success">/study/displayStudyStep.jsp</result>
111         </action>
112         <action name="step-study" class="org.splat.simer.DisplayStudyStepAction" method="selectStep">
113             <result name="success">/study/displayStudyStep.jsp</result>
114         </action>
115         <action name="document-study" class="org.splat.simer.DisplayStudyStepAction" method="selectDocument">
116             <result name="success">/study/displayStudyStep.jsp</result>
117         </action>
118         <action name="knowledge-study" class="org.splat.simer.DisplayStudyStepAction" method="selectKnowledge">
119             <result name="success">/study/displayStudyStep.jsp</result>
120         </action>
121         <action name="close-study" class="org.splat.simer.DisplayStudyStepAction" method="close">
122             <result name="success">/home.jsp</result>
123         </action>
124         <action name="prop-study" class="org.splat.simer.StudyPropertiesAction" method="initialize">
125             <result name="display">/study/displayStudyProperties.jsp</result>
126             <result name="edit">/study/editStudyProperties.jsp</result>
127         </action>
128
129         <!-- Display of knowledge elements
130           -->        
131         <action name="open-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="open">
132             <result name="success">/study/displayKnowledge.jsp</result>
133         </action>
134         <action name="step-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectStep">
135             <result name="success">/study/displayKnowledge.jsp</result>
136         </action>
137         <action name="document-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectDocument">
138             <result name="success">/study/displayKnowledge.jsp</result>
139         </action>
140         <action name="knowledge-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectKnowledge">
141             <result name="success">/study/displayKnowledge.jsp</result>
142         </action>
143         <action name="close-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="close">
144             <result name="success">/home.jsp</result>
145         </action>
146
147         <!-- Edition of study
148           -->        
149         <action name="edit-study" class="org.splat.simer.EditStudyAction" method="edition">
150             <result name="success">/study/displayStudyStep.jsp</result>
151         </action>
152         <action name="add-scenario" class="org.splat.simer.NewScenarioAction" method="initialize">
153             <result name="success">/study/newScenario.jsp?init=focus</result>
154         </action>
155         <action name="edit-title" class="org.splat.simer.StudyPropertiesAction" method="editTitle">
156             <result name="success">/study/editStudyProperties.jsp?action=edititle</result>
157         </action>
158         <action name="edit-contributor" class="org.splat.simer.StudyPropertiesAction" method="editContributors">
159             <result name="success">/study/editStudyProperties.jsp?action=edibutor</result>
160         </action>
161         <action name="edit-cycle" class="org.splat.simer.StudyPropertiesAction" method="editCycle">
162             <result name="success">/study/editStudyProperties.jsp?action=edicycle</result>
163         </action>
164         <action name="select-step" class="org.splat.simer.NewScenarioAction" method="selectStep">
165             <result name="success">/study/newScenario.jsp</result>
166         </action>
167         <action name="valid-add" class="org.splat.simer.NewScenarioAction" method="create">
168             <result name="cancel"  type="redirectAction">step-study</result>
169             <result name="success" type="redirectAction">step-study</result>
170            <result name="error">/study/displayStudyStep.jsp?error=addScenario</result>
171         </action>
172         <action name="valid-edit" class="org.splat.simer.StudyPropertiesAction" method="edition">
173             <result name="success">/study/editStudyProperties.jsp</result>
174         </action>
175         <action name="prop-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="initialize">
176             <result name="success">/study/editScenarioProperties.jsp</result>
177         </action>
178
179         <!-- Edition of scenario
180           -->
181         <action name="checkin-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="checkin">
182             <result name="success">/study/displayStudyStep.jsp</result>
183         </action>
184
185         <!-- Edition of simulation contexts
186           -->        
187         <action name="add-context" class="org.splat.simer.EditSimulationContextAction" method="initialize">
188             <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
189             <result name="select">/study/displayStudyStep.jsp?action=selectContext</result>
190         </action>
191         <action name="selectContext" class="org.splat.simer.EditSimulationContextAction" method="selectContext">
192             <result name="create">/study/displayStudyStep.jsp?action=newContext</result>
193             <result name="set">/study/displayStudyStep.jsp?action=setContext&amp;index=%{contextType.index}</result>
194         </action>
195         <action name="newContext" class="org.splat.simer.EditSimulationContextAction" method="createContext">
196             <result name="success">/study/displayStudyStep.jsp</result>
197             <result name="input">/study/displayStudyStep.jsp?action=newContext</result>
198             <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
199         </action>
200         <action name="setContext" class="org.splat.simer.EditSimulationContextAction" method="setContext">
201             <result name="success">/study/displayStudyStep.jsp</result>
202             <result name="input">/study/displayStudyStep.jsp?action=setContext&amp;index=%{contextType.index}</result>
203             <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
204         </action>
205         <action name="remove-context" class="org.splat.simer.EditSimulationContextAction" method="deleteContext">
206             <result name="success">/study/displayStudyStep.jsp</result>
207             <result name="error">/study/displayStudyStep.jsp?error=removeContext</result>
208         </action>
209
210         <!-- Edition of documents
211           -->
212         <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
213             <result name="success">/study/upload.jsp</result>
214         </action>
215         <action name="upload" class="org.splat.simer.UploadAction" method="upload">
216             <result name="cancel"  type="redirectAction">step-study</result>
217             <result name="import"  type="redirectAction">import-document?fileName=%{fileName}</result>
218             <result name="version" type="redirectAction">version-document?index=%{index}&amp;fileName=%{fileName}</result>
219             <result name="attach"  type="redirectAction">attach-document?index=%{index}&amp;fileName=%{fileName}</result>
220             <result name="outofmemory">/study/error.jsp?message=outofmemory</result>
221         </action>
222         <action name="import-document" class="org.splat.simer.ImportDocumentAction" method="initialize">
223             <result name="success">/study/importDocument.jsp</result>
224             <result name="error">/study/importError.jsp?message=%{errorCode}</result>
225         </action>
226         <action name="valid-import" class="org.splat.simer.ImportDocumentAction" method="import">
227             <result name="success" type="redirectAction">step-study</result>
228             <result name="cancel"  type="redirectAction">step-study</result>
229             <result name="error">/study/importError.jsp?message=%{errorCode}&amp;action=back</result>
230         </action>
231         <action name="version-document" class="org.splat.simer.VersionDocumentAction" method="initialize">
232             <result name="success">/study/versionDocument.jsp</result>
233             <result name="error">/study/importError.jsp?message=%{errorCode}</result>
234         </action>
235         <action name="valid-version" class="org.splat.simer.VersionDocumentAction" method="version">
236             <result name="success" type="redirectAction">step-study</result>
237             <result name="cancel"  type="redirectAction">step-study</result>
238             <result name="error">/study/importError.jsp?message=%{errorCode}&amp;action=back</result>
239         </action>
240         <action name="attach-document" class="org.splat.simer.EditDocumentAction" method="attach">
241             <result name="success">/study/displayStudyStep.jsp?action=display</result>
242         </action>
243         <action name="edit-document" class="org.splat.simer.EditDocumentAction" method="initialize">
244             <result name="success">/study/displayStudyStep.jsp</result>
245         </action>
246         <action name="setDocument" class="org.splat.simer.EditDocumentAction" method="setDocument">
247             <result name="success">/study/displayStudyStep.jsp?action=display</result>
248         </action>
249         <action name="remove-document" class="org.splat.simer.EditDocumentAction" method="deleteDocument">
250             <result name="success">/study/displayStudyStep.jsp</result>
251             <result name="error">/study/displayStudyStep.jsp?error=removeDocument</result>
252         </action>
253
254         <!-- Edition of knowledge elements
255           -->        
256         <action name="add-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
257             <result name="success">/study/displayStudyStep.jsp?action=addKnowledge&amp;index=%{knowledgeType}</result>
258         </action>
259         <action name="edit-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
260             <result name="success">/study/displayStudyStep.jsp</result>
261         </action>
262         <action name="setKnowledge" class="org.splat.simer.EditKnowledgeElementAction" method="setKnowledge">
263             <result name="success">/study/displayStudyStep.jsp?action=display</result>
264         </action>
265         <action name="remove-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="deleteKnowledge">
266             <result name="success">/study/displayStudyStep.jsp</result>
267             <result name="error">/study/displayStudyStep.jsp?error=removeKnowledge</result>
268         </action>
269
270     </package>
271
272
273     <package name="sadmin" namespace="/sadmin" extends="simer-default">
274
275         <!-- Menus of database administration
276           -->        
277         <action name="indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="initialize">
278             <result name="success">/sadmin/indexStudies.jsp</result>
279         </action>
280         <action name="valid-indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="indexing">
281             <result name="success" type="redirectAction">../study/search-study</result>
282         </action>
283         <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
284             <result name="success">/sadmin/upload.jsp</result>
285         </action>
286         <action name="upload"      class="org.splat.simer.UploadAction" method="upload">
287             <result name="importuser" type="redirectAction">importuser?fileName=%{fileName}</result>
288         </action>
289         <action name="importuser" class="org.splat.simer.admin.ImportUserAction" method="import">
290             <result name="success">/sadmin/displayUser.jsp</result>
291         </action>
292
293         <!-- Menus of knowledge administration
294           -->        
295         <action name="scontext" class="org.splat.simer.admin.SimulationContextAction" method="initialize">
296             <result name="success">/sadmin/approveSContext.jsp</result>
297         </action>
298         <action name="scontext-edit" class="org.splat.simer.admin.SimulationContextAction" method="select">
299             <result name="success">/sadmin/approveSContext.jsp</result>
300         </action>
301         <action name="knowelm"  class="org.splat.simer.admin.KnowledgeElementAction" method="initialize">
302             <result name="success">/sadmin/approveKnowelm.jsp</result>
303         </action>
304     </package>
305
306     <package name="sgeom" namespace="/sgeom" extends="simer-default">
307
308         <action name="valid-save"    class="org.splat.module.SaveDocumentAction" method="save">
309             <result name="success">/sgeom/index.jsp</result>
310         </action>
311         <action name="valid-update"  class="org.splat.module.SaveDocumentAction" method="update">
312             <result name="success">/sgeom/index.jsp</result>
313         </action>
314         <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
315             <result name="success">/sgeom/index.jsp</result>
316         </action>
317
318     </package>
319
320
321     <package name="smesh" namespace="/smesh" extends="simer-default">
322
323         <action name="valid-save"    class="org.splat.module.SaveDocumentAction" method="save">
324             <result name="success">/smesh/index.jsp</result>
325         </action>
326         <action name="valid-update"  class="org.splat.module.SaveDocumentAction" method="update">
327             <result name="success">/smesh/index.jsp</result>
328         </action>
329         <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
330             <result name="success">/smesh/index.jsp</result>
331         </action>
332
333     </package>
334 </struts>