struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Broadhurst <hou1...@gmail.com>
Subject Re: Two Docs from One Link/Action
Date Fri, 16 Sep 2011 16:41:47 GMT
Thanks Wes. Both docs (generated with custom content) need to display
directly to user for printing. If there is no standard straight forward way
to do this, I will simply create two links, one for each doc, vs the zip
file.
On Sep 16, 2011 11:31 AM, "Eric Lentz" <Eric.Lentz@sherwin.com> wrote:
> 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