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