struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Lentz <Eric.Le...@sherwin.com>
Subject Re: Two Docs from One Link/Action
Date Fri, 16 Sep 2011 16:31:09 GMT
Could you form your e-mail into a question? What are you trying to 
accomplish? Do you want the user to be able to download two documents at 
the same time? Do you want links to the documents? What didn't work?



From:
Nick Broadhurst <hou1nxb@gmail.com>
To:
Struts Users Mailing List <user@struts.apache.org>
Date:
09/16/2011 12:19 PM
Subject:
Two Docs from One Link/Action



Hi folks,

Trying to generate an additional document from a link/action that already
generates one. Here is my config:

<code>

<action name="MedRequest" class="action.WordAction"
method="MedicalRecordsRequest">

            <result name="success" type="stream">

                <param name="contentType">application/msword</param>

                <param name="inputName">inputStream</param>

                <param
name="contentDisposition">filename="Med-Rec-Request.rtf"</param>

                <param name="bufferSize">1024</param>

            </result>

</action>

</code>

Grasped at a couple of straws with multiple param sets and  results but
nothing worked. I need to use result type redirect (for second doc) and
stream at same time it seems.

Thanks,

Nick



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message