]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
0063ea18c4fa6d032a058862004719e31d0e5914
[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         <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" />
12
13     <package name="simer-default" namespace="/" extends="struts-default">
14     </package>
15
16     <package name="default" namespace="/" extends="simer-default">
17
18         <default-action-ref name="index" />
19
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>
23         </action>        
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>
31         </action>
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>
40         </action>
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>
53         </action>
54
55     </package>
56
57     <package name="study" namespace="/study" extends="simer-default">
58
59         <action name="notyetimplemented" class="org.splat.simer.NotYetImplementedAction" method="initialize">
60             <result name="success">/study/error.jsp?message=notyetimplemented</result>
61         </action>
62
63         <!-- Creation of a study
64           -->        
65         <action name="new-empty" class="org.splat.simer.NewStudyAction" method="initialize">
66             <result name="success">/study/newStudy.jsp</result>
67         </action>
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>
72         </action>
73
74         <!-- Search for studies, knowledge elements and documents
75           -->
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>
79         </action>
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>
85         </action>
86
87         <action name="search-knowledge" class="org.splat.simer.SearchKnowledgeAction" method="initialize">
88             <result name="success">/study/searchKnowledge.jsp</result>
89         </action>
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>
95         </action>
96
97         <action name="search-document" class="org.splat.simer.SearchDocumentAction" method="initialize">
98             <result name="success">/study/searchDocument.jsp</result>
99         </action>
100
101         <!-- Display of studies
102           -->
103         <action name="open-study" class="org.splat.simer.DisplayStudyStepAction" method="open">
104             <result name="success">/study/displayStudyStep.jsp</result>
105         </action>
106         <action name="step-study" class="org.splat.simer.DisplayStudyStepAction" method="selectStep">
107             <result name="success">/study/displayStudyStep.jsp</result>
108         </action>
109         <action name="document-study" class="org.splat.simer.DisplayStudyStepAction" method="selectDocument">
110             <result name="success">/study/displayStudyStep.jsp</result>
111         </action>
112         <action name="knowledge-study" class="org.splat.simer.DisplayStudyStepAction" method="selectKnowledge">
113             <result name="success">/study/displayStudyStep.jsp</result>
114         </action>
115         <action name="close-study" class="org.splat.simer.DisplayStudyStepAction" method="close">
116             <result name="success">/home.jsp</result>
117         </action>
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>
121         </action>
122
123         <!-- Display of knowledge elements
124           -->        
125         <action name="open-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="open">
126             <result name="success">/study/displayKnowledge.jsp</result>
127         </action>
128         <action name="step-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectStep">
129             <result name="success">/study/displayKnowledge.jsp</result>
130         </action>
131         <action name="document-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectDocument">
132             <result name="success">/study/displayKnowledge.jsp</result>
133         </action>
134         <action name="knowledge-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="selectKnowledge">
135             <result name="success">/study/displayKnowledge.jsp</result>
136         </action>
137         <action name="close-knowledge" class="org.splat.simer.DisplayKnowledgeAction" method="close">
138             <result name="success">/home.jsp</result>
139         </action>
140
141         <!-- Edition of study
142           -->        
143         <action name="edit-study" class="org.splat.simer.EditStudyAction" method="edition">
144             <result name="success">/study/displayStudyStep.jsp</result>
145         </action>
146         <action name="add-scenario" class="org.splat.simer.NewScenarioAction" method="initialize">
147             <result name="success">/study/newScenario.jsp?init=focus</result>
148         </action>
149         <action name="edit-title" class="org.splat.simer.StudyPropertiesAction" method="editTitle">
150             <result name="success">/study/editStudyProperties.jsp?action=edititle</result>
151         </action>
152         <action name="edit-contributor" class="org.splat.simer.StudyPropertiesAction" method="editContributors">
153             <result name="success">/study/editStudyProperties.jsp?action=edibutor</result>
154         </action>
155         <action name="edit-cycle" class="org.splat.simer.StudyPropertiesAction" method="editCycle">
156             <result name="success">/study/editStudyProperties.jsp?action=edicycle</result>
157         </action>
158         <action name="select-step" class="org.splat.simer.NewScenarioAction" method="selectStep">
159             <result name="success">/study/newScenario.jsp</result>
160         </action>
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>
165         </action>
166         <action name="valid-edit" class="org.splat.simer.StudyPropertiesAction" method="edition">
167             <result name="success">/study/editStudyProperties.jsp</result>
168         </action>
169         <action name="prop-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="initialize">
170             <result name="success">/study/editScenarioProperties.jsp</result>
171         </action>
172
173         <!-- Edition of scenario
174           -->
175         <action name="checkin-scenario" class="org.splat.simer.EditScenarioPropertiesAction" method="checkin">
176             <result name="success">/study/displayStudyStep.jsp</result>
177         </action>
178
179         <!-- Edition of simulation contexts
180           -->        
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>
184         </action>
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&amp;index=%{contextType.index}</result>
188         </action>
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>
193         </action>
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&amp;index=%{contextType.index}</result>
197             <result name="error">/study/displayStudyStep.jsp?error=addContext</result>
198         </action>
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>
202         </action>
203
204         <!-- Edition of documents
205           -->
206         <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
207             <result name="success">/study/upload.jsp</result>
208         </action>
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}&amp;fileName=%{fileName}</result>
213             <result name="attach"  type="redirectAction">attach-document?index=%{index}&amp;fileName=%{fileName}</result>
214             <result name="outofmemory">/study/error.jsp?message=outofmemory</result>
215         </action>
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>
219         </action>
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}&amp;action=back</result>
224         </action>
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>
228         </action>
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}&amp;action=back</result>
233         </action>
234         <action name="attach-document" class="org.splat.simer.EditDocumentAction" method="attach">
235             <result name="success">/study/displayStudyStep.jsp?action=display</result>
236         </action>
237         <action name="edit-document" class="org.splat.simer.EditDocumentAction" method="initialize">
238             <result name="success">/study/displayStudyStep.jsp</result>
239         </action>
240         <action name="setDocument" class="org.splat.simer.EditDocumentAction" method="setDocument">
241             <result name="success">/study/displayStudyStep.jsp?action=display</result>
242         </action>
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>
246         </action>
247
248         <!-- Edition of knowledge elements
249           -->        
250         <action name="add-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
251             <result name="success">/study/displayStudyStep.jsp?action=addKnowledge&amp;index=%{knowledgeType}</result>
252         </action>
253         <action name="edit-knowledge" class="org.splat.simer.EditKnowledgeElementAction" method="initialize">
254             <result name="success">/study/displayStudyStep.jsp</result>
255         </action>
256         <action name="setKnowledge" class="org.splat.simer.EditKnowledgeElementAction" method="setKnowledge">
257             <result name="success">/study/displayStudyStep.jsp?action=display</result>
258         </action>
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>
262         </action>
263
264     </package>
265
266
267     <package name="sadmin" namespace="/sadmin" extends="simer-default">
268
269         <!-- Menus of database administration
270           -->        
271         <action name="indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="initialize">
272             <result name="success">/sadmin/indexStudies.jsp</result>
273         </action>
274         <action name="valid-indexing" class="org.splat.simer.admin.DatabaseIndexingAction" method="indexing">
275             <result name="success" type="redirectAction">../study/search-study</result>
276         </action>
277         <action name="select-file" class="org.splat.simer.UploadAction" method="initialize">
278             <result name="success">/sadmin/upload.jsp</result>
279         </action>
280         <action name="upload"      class="org.splat.simer.UploadAction" method="upload">
281             <result name="importuser" type="redirectAction">importuser?fileName=%{fileName}</result>
282         </action>
283         <action name="importuser" class="org.splat.simer.admin.ImportUserAction" method="import">
284             <result name="success">/sadmin/displayUser.jsp</result>
285         </action>
286
287         <!-- Menus of knowledge administration
288           -->        
289         <action name="scontext" class="org.splat.simer.admin.SimulationContextAction" method="initialize">
290             <result name="success">/sadmin/approveSContext.jsp</result>
291         </action>
292         <action name="scontext-edit" class="org.splat.simer.admin.SimulationContextAction" method="select">
293             <result name="success">/sadmin/approveSContext.jsp</result>
294         </action>
295         <action name="knowelm"  class="org.splat.simer.admin.KnowledgeElementAction" method="initialize">
296             <result name="success">/sadmin/approveKnowelm.jsp</result>
297         </action>
298     </package>
299
300     <package name="sgeom" namespace="/sgeom" extends="simer-default">
301
302         <action name="valid-save"    class="org.splat.module.SaveDocumentAction" method="save">
303             <result name="success">/sgeom/index.jsp</result>
304         </action>
305         <action name="valid-update"  class="org.splat.module.SaveDocumentAction" method="update">
306             <result name="success">/sgeom/index.jsp</result>
307         </action>
308         <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
309             <result name="success">/sgeom/index.jsp</result>
310         </action>
311
312     </package>
313
314
315     <package name="smesh" namespace="/smesh" extends="simer-default">
316
317         <action name="valid-save"    class="org.splat.module.SaveDocumentAction" method="save">
318             <result name="success">/smesh/index.jsp</result>
319         </action>
320         <action name="valid-update"  class="org.splat.module.SaveDocumentAction" method="update">
321             <result name="success">/smesh/index.jsp</result>
322         </action>
323         <action name="valid-version" class="org.splat.module.SaveDocumentAction" method="version">
324             <result name="success">/smesh/index.jsp</result>
325         </action>
326
327     </package>
328 </struts>