[ https://issues.apache.org/struts/browse/WW-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42568 ]
Ted Husted commented on WW-1281: -------------------------------- Don, did you run the tests after applying the patch? I'm getting Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.343 sec Running org.apache.struts2.dispatcher.mapper.DefaultActionMapperTest Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.047 sec Results : Failed tests: testStreamResultDefault(org.apache.struts2.dispatcher.StreamResultTest) Tests run: 619, Failures: 1, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 12 seconds [INFO] Finished at: Sun Nov 04 20:37:21 EST 2007 [INFO] Final Memory: 30M/67M [INFO] ------------------------------------------------------------------------ > Allow StreamResult parameters to be read from the stack > ------------------------------------------------------- > > Key: WW-1281 > URL: https://issues.apache.org/struts/browse/WW-1281 > Project: Struts 2 > Issue Type: Improvement > Components: Dispatch Filter, XML Configuration > Affects Versions: WW 2.2.2 > Environment: Any > Reporter: Eric Molitor > Assignee: Don Brown > Fix For: 2.1.1 > > 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. - You can reply to this email to add a comment to the issue online.