You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Eric Molitor <em...@molitor.org> on 2006/04/10 08:37:51 UTC
[Action2] StreamResult Patch
This patch allows the parameters for the stream result to be read from
the stack. I seem to be having issues running the unit tests so none
are included. (I'll probably work on some later). Precedence is given
to values on the stack over values in the XML file.
I plan to use the patch as follows
In xwork.xml I create a global stream result..
<result name="stream" type="stream" />
Then in my actions I create getter methods for the various parameters
(probably just contentDisposition, contentType, and contentLength) and
then just return "stream" as the result of my execute method.
Cheers,
Eric
Re: [Action2] StreamResult Patch
Posted by Eric Molitor <em...@molitor.org>.
WW-1281 created
Once I get a chance to look at why the unit tests aren't running tI'll
add a bit more.
I've also been looking at an alternate approach that would allow any
Result (anything that extends StrutsResultSupport) to recieve its
parameters from the stack.
Cheers,
Eric
On 4/10/06, James Mitchell <jm...@apache.org> wrote:
> Any chance you could attach this to a jira ticket? That's the normal
> process, so that your contribution won't be forgotten. If you can't,
> I'll try add it to jira tomorrow.
>
> Thanks for your help.
>
> --
> James Mitchell
>
>
>
>
> On Apr 10, 2006, at 2:37 AM, Eric Molitor wrote:
>
> > This patch allows the parameters for the stream result to be read from
> > the stack. I seem to be having issues running the unit tests so none
> > are included. (I'll probably work on some later). Precedence is given
> > to values on the stack over values in the XML file.
> >
> > I plan to use the patch as follows
> >
> > In xwork.xml I create a global stream result..
> > <result name="stream" type="stream" />
> >
> > Then in my actions I create getter methods for the various parameters
> > (probably just contentDisposition, contentType, and contentLength) and
> > then just return "stream" as the result of my execute method.
> >
> > Cheers,
> > Eric
> > <StreamResult.patch>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [Action2] StreamResult Patch
Posted by James Mitchell <jm...@apache.org>.
Any chance you could attach this to a jira ticket? That's the normal
process, so that your contribution won't be forgotten. If you can't,
I'll try add it to jira tomorrow.
Thanks for your help.
--
James Mitchell
On Apr 10, 2006, at 2:37 AM, Eric Molitor wrote:
> This patch allows the parameters for the stream result to be read from
> the stack. I seem to be having issues running the unit tests so none
> are included. (I'll probably work on some later). Precedence is given
> to values on the stack over values in the XML file.
>
> I plan to use the patch as follows
>
> In xwork.xml I create a global stream result..
> <result name="stream" type="stream" />
>
> Then in my actions I create getter methods for the various parameters
> (probably just contentDisposition, contentType, and contentLength) and
> then just return "stream" as the result of my execute method.
>
> Cheers,
> Eric
> <StreamResult.patch>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org