Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-07-04 Thread Dale Newfield
Francisco José Aquino García wrote: 2009/7/1 Dale Newfield : May I ask why you need to dynamically change the buffer size? to use the filesystem block size where the thumbnail resides as the bufferSize, as different thumbnails may reside in different filesystems That sounds like a reasonable

Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-07-04 Thread Francisco José Aquino García
2009/7/1 Dale Newfield : > The problem is that there is no evaluation going on for that value.  If you > need to dynamically set the buffer size, you'll need to use a different > result implementation that accepts a string and evaluates it.  Extending > StreamResult would get you most of the way th

RE: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-30 Thread Martin Gainty
oire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 30 Jun 2009 19:07:17 -0400 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: [S2] Can't

Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-30 Thread Dale Newfield
Francisco José Aquino García wrote: 2009/6/26 Dale Newfield : The result doesn't evaluate bufferSize. You can't put in OGNL there. So... bufferSize in StreamResult would need to be parsed in a similar way to contentLength to parse OGNL expressions? Right. There's no magic. OGNL isn't magi

Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-30 Thread Francisco José Aquino García
2009/6/26 Dale Newfield : > The result doesn't evaluate bufferSize.  You can't put in OGNL there. So... bufferSize in StreamResult would need to be parsed in a similar way to contentLength to parse OGNL expressions? > "${buffSize}" is a String. Ok, I understand that as it isn't being parsed as

Re: [S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-26 Thread Dale Newfield
Francisco José Aquino García wrote: ${mimeType} ${length} inline; filename="${fileName}" inputStream ${buffSize} false The result doesn't evaluate bufferSize. You can't put in OGNL there. I've been peeking a little into org.a

[S2] Can't setBufferSize on StreamResult from action configuration (Struts2 2.1.6)

2009-06-25 Thread Francisco José Aquino García
Hi,   I've been coding an action which returns a streamed image based on some image id. Quick and dirty, something like: package org.chop.prjx.actions; import java.io.*; import java.slf4j.*; import com.opensymphony.xwork2.ActionSupport; import eu.medsea.mimeutil.MimeUtil; public class ThumbnailA