You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Rene Gielen (JIRA)" <ji...@apache.org> on 2006/04/28 08:29:19 UTC

[jira] Assigned: (WW-1281) Allow StreamResult parameters to be read from the stack

     [ http://issues.apache.org/struts/browse/WW-1281?page=all ]

Rene Gielen reassigned WW-1281:
-------------------------------

    Assign To: Rene Gielen

> Allow StreamResult parameters to be read from the stack
> -------------------------------------------------------
>
>          Key: WW-1281
>          URL: http://issues.apache.org/struts/browse/WW-1281
>      Project: Struts Action 2
>         Type: Improvement

>   Components: Views, Configuration, Dispatch
>     Versions: WW 2.2.2
>  Environment: Any
>     Reporter: Eric Molitor
>     Assignee: Rene Gielen
>      Fix For: 2.0
>  Attachments: 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [jira] Assigned: (WW-1281) Allow StreamResult parameters to be read from the stack

Posted by Eric Molitor <em...@molitor.org>.
Rene, let me know what you think of this. I have a slightly different
direction that I've been poking around with that takes the same idea a
bit further. Too often I find myself wishing to just use a value on
the stack for configuration and not poke around in the XML. I'd like a
generic way to declare parameters that will automagically get pulled
from the stack (If available). I probably need to put that under a
"nice to have" but the more I work with complex logic in Webwork, the
more I feel constrained by the XML.

Cheers

On 4/28/06, Rene Gielen (JIRA) <ji...@apache.org> wrote:
>     [ http://issues.apache.org/struts/browse/WW-1281?page=all ]
>
> Rene Gielen reassigned WW-1281:
> -------------------------------
>
>    Assign To: Rene Gielen
>
> > Allow StreamResult parameters to be read from the stack
> > -------------------------------------------------------
> >
> >          Key: WW-1281
> >          URL: http://issues.apache.org/struts/browse/WW-1281
> >      Project: Struts Action 2
> >         Type: Improvement
>
> >   Components: Views, Configuration, Dispatch
> >     Versions: WW 2.2.2
> >  Environment: Any
> >     Reporter: Eric Molitor
> >     Assignee: Rene Gielen
> >      Fix For: 2.0
> >  Attachments: 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.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>   http://issues.apache.org/struts/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>   http://www.atlassian.com/software/jira
>
>
> ---------------------------------------------------------------------
> 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