]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Studies comparison functionality is implemented.
authormka <mka@opencascade.com>
Thu, 14 Mar 2013 11:41:41 +0000 (11:41 +0000)
committermka <mka@opencascade.com>
Thu, 14 Mar 2013 11:41:41 +0000 (11:41 +0000)
Workspace/Siman/src/struts.xml

index ffebe53a57da246a688fdbb1eb6c0c729a6a0f2d..0f369c9f9ad1c504ba3cbf84b1a283de416d1623 100644 (file)
@@ -74,7 +74,6 @@
                </action>
        </package>
 
-
        <package name="default" namespace="/" extends="simer-default">
 
                <default-action-ref name="index" />
         
         <action name="create-stepComment" class="editStepCommentAction" method="create">
             <result name="success" type="tiles">zone.stepcomments</result>
-        </action>
-        
+        </action>     
         <action name="remove-comment" class="editStepCommentAction" method="remove">
             <result name="success" type="tiles">zone.stepcomments</result>
         </action>
             <result name="error" type="tiles">page.comparestudy</result>
         </action>
         <action name="compare-studies" class="CompareStudyAction" method="compare">
-            <result name="success" type="tiles">page.comparestudy</result>
-            <result name="error" type="tiles">page.comparestudy</result>
+                       <result name="success"  type="stream" >
+                           <param name="inputName">resultInputStream</param>
+                           <param name="contentType">application/octet-stream</param>
+                               <param name="contentDisposition">attachment;filename="ComparisonResults.pdf"</param>
+                               <param name="bufferSize">1024</param>
+                               <param name="contentLength"></param>
+                       </result>
+            <result name="error" type="redirectAction">
+                   <param name="actionName">init-study-comparison</param>
+                   <param name="errorMessage">${true}</param>
+               </result>
         </action>
        </package>