Issues Closed: week of 2007-11-02
Struts2 - Friday, November 2, 2007 31 closed in last 7 days [WW-1715] Struts 2.1.0 omnibus ticket http://issues.apache.org/struts/browse/WW-1715 [WW-1748] Configure XWork TextProvider with struts.properties (requires XWork 2.0.1) http://issues.apache.org/struts/browse/WW-1748 [WW-1178] add a loadingCss attribute to ww:div http://issues.apache.org/struts/browse/WW-1178 [WW-2200] showcase/pom.xml resources tag produces NullPointerException http://issues.apache.org/struts/browse/WW-2200 [WW-1133] Deprecate the ww:push tag http://issues.apache.org/struts/browse/WW-1133 [WW-1789] VelocityResult can not work with VelocityTools 1.3 http://issues.apache.org/struts/browse/WW-1789 [WW-] The autocompleter bugs in struts2.0 http://issues.apache.org/struts/browse/WW- [WW-2282] Apply patch to Struts2 core module on performance issues reported by FindBugs http://issues.apache.org/struts/browse/WW-2282 [WW-2279] Update Spring dependencies to 2.0.7 http://issues.apache.org/struts/browse/WW-2279 [WW-764] URLBean improvements http://issues.apache.org/struts/browse/WW-764 [WW-1280] Image Tag http://issues.apache.org/struts/browse/WW-1280 [WW-2204] The package referenced in the JFreeChart plugin struts-plugin.xml should extend struts-default http://issues.apache.org/struts/browse/WW-2204 [WW-2264] A session value is overwrited by requesting. http://issues.apache.org/struts/browse/WW-2264 [WW-2063] Fix Subversion properties http://issues.apache.org/struts/browse/WW-2063 [WW-2094] Error DateTimePicker when erase input then click again the calendar http://issues.apache.org/struts/browse/WW-2094 [WW-2280] Refactor JIRA Component names http://issues.apache.org/struts/browse/WW-2280 [WW-2112] @ConversionErrorFieldValidator and Collections not working http://issues.apache.org/struts/browse/WW-2112 [WW-1622] Have an interceptor that invalidates http session http://issues.apache.org/struts/browse/WW-1622 [WW-2009] Website download button has wrong version number in the image http://issues.apache.org/struts/browse/WW-2009 [WW-1325] IE don't support field.hasAttribute http://issues.apache.org/struts/browse/WW-1325 [WW-56] Chaining not depend on just the previous action http://issues.apache.org/struts/browse/WW-56 [WW-2262] Download button on Struts 2 page states old version number http://issues.apache.org/struts/browse/WW-2262 [WW-2249] submit tag not XHTML compliant (css_xhtml theme) http://issues.apache.org/struts/browse/WW-2249 [WW-2276] Automatic storage and retrieval of messages in MessageStoreInterceptor http://issues.apache.org/struts/browse/WW-2276 [WW-803] JFreeReport Result http://issues.apache.org/struts/browse/WW-803 [WW-2241] Autocompleter issues request on page load http://issues.apache.org/struts/browse/WW-2241 [WW-2252] Ability to Configure MessageStoreInterceptor via Annotations http://issues.apache.org/struts/browse/WW-2252 [WW-2275] autocompleter tag doesn't send multibyte characters correctly http://issues.apache.org/struts/browse/WW-2275 [WW-2006] StrutsSpringObjectFactory should create a child Spring ApplicationContext http://issues.apache.org/struts/browse/WW-2006 [WW-2198] Integration of Struts 2 and DWR http://issues.apache.org/struts/browse/WW-2198 [WW-2123] Default tab in tabbedPanel loaded twice http://issues.apache.org/struts/browse/WW-2123
svn commit: r591531 - in /struts/struts2/trunk/core/src: main/java/org/apache/struts2/dispatcher/StreamResult.java test/java/org/apache/struts2/dispatcher/StreamResultTest.java
Author: mrdon Date: Fri Nov 2 18:18:14 2007 New Revision: 591531 URL: http://svn.apache.org/viewvc?rev=591531&view=rev Log: Adding retrieval of result parameters from stack for stream result WW-1281 Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/StreamResultTest.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java?rev=591531&r1=591530&r2=591531&view=diff == --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java Fri Nov 2 18:18:14 2007 @@ -28,6 +28,7 @@ import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.util.logging.Logger; import com.opensymphony.xwork2.util.logging.LoggerFactory; +import com.opensymphony.xwork2.util.ValueStack; /** * @@ -61,6 +62,9 @@ * * * + * These parameters can also be set by exposing a similarly named getter method on your Action. For example, you can + * provide getContentType() to override that parameter for the current action.N + * * * * Example: @@ -173,6 +177,9 @@ */ protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception { +// Override any parameters using values on the stack +resolveParamsFromStack(invocation.getStack()); + OutputStream oOutput = null; try { @@ -237,6 +244,38 @@ finally { if (inputStream != null) inputStream.close(); if (oOutput != null) oOutput.close(); +} +} + +/** + * Tries to lookup the parameters on the stack. Will override any existing parameters + * + * @param stack The current value stack + */ +protected void resolveParamsFromStack(ValueStack stack) { +String disposition = stack.findString("contentDisposition"); +if (disposition != null) { +setContentDisposition(disposition); +} + +String contentType = stack.findString("contentType"); +if (contentType != null) { +setContentLength(contentType); +} + +String inputName = stack.findString("inputName"); +if (inputName != null) { +setInputName(inputName); +} + +String contentLength = stack.findString("contentLength"); +if (contentLength != null) { +setContentLength(contentLength); +} + +Integer bufferSize = (Integer) stack.findValue("bufferSize", Integer.class); +if (bufferSize != null) { +setBufferSize(bufferSize.intValue()); } } Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/StreamResultTest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/StreamResultTest.java?rev=591531&r1=591530&r2=591531&view=diff == --- struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/StreamResultTest.java (original) +++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/StreamResultTest.java Fri Nov 2 18:18:14 2007 @@ -81,14 +81,14 @@ result.doExecute("helloworld", mai); -assertEquals(null, result.getContentLength()); +assertEquals("1185", result.getContentLength()); assertEquals("text/plain", result.getContentType()); assertEquals("streamForImage", result.getInputName()); assertEquals(1024, result.getBufferSize()); // 1024 is default assertEquals("inline", result.getContentDisposition()); assertEquals("text/plain", response.getContentType()); -assertEquals(0, response.getContentLength()); +assertEquals(1185, response.getContentLength()); assertEquals("inline", response.getHeader("Content-disposition")); }
svn commit: r591553 - /struts/struts2/trunk/core/src/main/resources/struts-default.xml
Author: tschneider Date: Fri Nov 2 22:21:19 2007 New Revision: 591553 URL: http://svn.apache.org/viewvc?rev=591553&view=rev Log: WW-1622 - added clear session interceptor to struts-default Modified: struts/struts2/trunk/core/src/main/resources/struts-default.xml Modified: struts/struts2/trunk/core/src/main/resources/struts-default.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/struts-default.xml?rev=591553&r1=591552&r2=591553&view=diff == --- struts/struts2/trunk/core/src/main/resources/struts-default.xml (original) +++ struts/struts2/trunk/core/src/main/resources/struts-default.xml Fri Nov 2 22:21:19 2007 @@ -117,6 +117,7 @@ +
[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Geronimo Development (GMOxDEV) http://cwiki.apache.org/confluence/display/GMOxDEV | |-Pages Added or Edited in This Space |-- Security Review was last edited by gawor (02:02 PM). | http://cwiki.apache.org/confluence/display/GMOxDEV/Security+Review |-- Building Apache Geronimo was last edited by jdillon (12:56 PM). | http://cwiki.apache.org/confluence/display/GMOxDEV/Building+Apache+Geronimo |-- Monitoring and Management Service was last edited by vhnguyen (09:03 AM). | http://cwiki.apache.org/confluence/display/GMOxDEV/Monitoring+and+Management+Service Apache Camel (CAMEL) http://cwiki.apache.org/confluence/display/CAMEL | |-Pages Added or Edited in This Space |-- Velocity was last edited by jstrachan (10:52 AM). | http://cwiki.apache.org/confluence/display/CAMEL/Velocity |-- XQuery Endpoint was last edited by jstrachan (10:52 AM). | http://cwiki.apache.org/confluence/display/CAMEL/XQuery+Endpoint |-- XSLT was last edited by jstrachan (10:51 AM). | http://cwiki.apache.org/confluence/display/CAMEL/XSLT Apache Geronimo (GMOxSITE) http://cwiki.apache.org/confluence/display/GMOxSITE | |-Pages Added or Edited in This Space |-- SideNav Subprojects was last edited by jdillon (01:10 PM). | http://cwiki.apache.org/confluence/display/GMOxSITE/SideNav+Subprojects |-- Events was last edited by hcunico (11:27 AM). | http://cwiki.apache.org/confluence/display/GMOxSITE/Events |-- November 8, 2007 - - Irish Java Technology Conference was created by hcunico (11:16 AM). | http://cwiki.apache.org/confluence/display/GMOxSITE/2007/11/02/November+8%2C+2007+-+-+Irish+Java+Technology+Conference OpenEJB (OPENEJB) http://cwiki.apache.org/confluence/display/OPENEJB | |-Pages Added or Edited in This Space |-- Embedded and Remotable was last edited by dblevins (01:55 PM). | http://cwiki.apache.org/confluence/display/OPENEJB/Embedded+and+Remotable Apache FTPServer Project (FTPSERVER) http://cwiki.apache.org/confluence/display/FTPSERVER | |-Pages Added or Edited in This Space |-- Configure passive ports was last edited by ngn (02:18 PM). | http://cwiki.apache.org/confluence/display/FTPSERVER/Configure+passive+ports Apache Directory Server v1.5 (DIRxSRVx11) http://cwiki.apache.org/confluence/display/DIRxSRVx11 | |-Pages Added or Edited in This Space |-- Reverse LDIF was last edited by elecharny (04:24 PM). | http://cwiki.apache.org/confluence/display/DIRxSRVx11/Reverse+LDIF Apache Struts 2 Plugin Registry (S2PLUGINS) http://cwiki.apache.org/confluence/display/S2PLUGINS | |-Pages Added or Edited in This Space |-- Scope plugin was last edited by [EMAIL PROTECTED] (09:58 PM). | http://cwiki.apache.org/confluence/display/S2PLUGINS/Scope+plugin |-- JSON Plugin was last edited by musachy (11:54 AM). | http://cwiki.apache.org/confluence/display/S2PLUGINS/JSON+Plugin Apache Tiles (TILES) http://cwiki.apache.org/confluence/display/TILES | |-Pages Added or Edited in This Space |-- DimensionsIncubationProposal was last edited by apetrelli (03:58 AM). | http://cwiki.apache.org/confluence/display/TILES/DimensionsIncubationProposal Apache Geronimo Project Management (GMOxPMGT) http://cwiki.apache.org/confluence/display/GMOxPMGT | |-Pages Added or Edited in This Space |-- Release Branching Process was last edited by drwoods (01:29 PM). | http://cwiki.apache.org/confluence/display/GMOxPMGT/Release+Branching+Process Tuscany Wiki (TUSCANYWIKI) http://cwiki.apache.org/confluence/display/TUSCANYWIKI | |-Pages Added or Edited in This Space |-- Test lresende was created by [EMAIL PROTECTED] (03:32 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Test+lresende Apache CXF (CXF) http://cwiki.apache.org/confluence/display/CXF | |-Pages Added or Edited in This Space |-- Resources and Articles was last edited by mazzag (08:13 PM). | http://cwiki.apache.org/confluence/display/CXF/Resources+and+Articles Apache Geronimo Samples (GMOxSAMPLES) http://cwiki.apache.org/confluence/display/GMOxSAMPLES | |-Pages Added or Edited in This Space |-- Simple example of Struts and Spring was created by [EMAIL PROTECTED] (08:30 PM). | http://cwiki.apache.org/confluence/display/GMOxSAMPLES/Simple+example+of+Struts+and+Spring - CONFLUENCE INFORMATION This message is automatically generated by Confluence Unsubscribe or edit your notifications preferences http://cwiki.apache.org/confluence/users/viewnotifications.action If you think it was sent incorrectly contact one of the administrators http://cwiki.apache.org/confluence/administrators.action If you want more information on Confluence, or have a bug to