Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-24 Thread Mike Guo
hi, thanks for your response. I got this solved . here’s the article I searched, it can explain why and how about this thing. http://www.oracle.com/technetwork/articles/javase/headless-136834.html thanks again Mike.G

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-24 Thread Christoph Nenning
> Hi. all. > > I got a very strange issues. > > I tried to generate dynamic check code by struts2. so, I used > buffered image and javax.imageio for a byteinputstream in my Action. > > look like the function work fine. but strange thing is: every time > when I access that dynamic check code

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
and I think the finally answer is here: http://www.oracle.com/technetwork/articles/javase/headless-136834.html just for record. Mike.G > 在 2015年9月24日,12:05,Mike Guo 写道: > > ok, finally, I got the solution for this on

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
ok, finally, I got the solution for this one. although I don’t know why. I just add one java param in here: java -Djava.awt.headless=true then it will be gone. thanks Mike.G > 在 2015年9月24日,12:02,Mike Guo 写道: > > ok, I just found it is not related with tomcat or struts. > > I just use t

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
ok, I just found it is not related with tomcat or struts. I just use this code: import java.util.Arrays; import javax.imageio.ImageIO; public class ListImageFormatters { public static void main(String[] args) { String[] readerFormatNames = ImageIO.getReaderFormatNames();

Re: what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
Anyone? Please. 发自我的 iPhone > 在 2015年9月24日,02:15,Mike Guo 写道: > > Hi. all. > > I got a very strange issues. > > I tried to generate dynamic check code by struts2. so, I used buffered image > and javax.imageio for a byteinputstream in my Action. > > look like the function work fine. but

what's the Bootstrap when I use "stream" result type for a picture output

2015-09-23 Thread Mike Guo
Hi. all. I got a very strange issues. I tried to generate dynamic check code by struts2. so, I used buffered image and javax.imageio for a byteinputstream in my Action. look like the function work fine. but strange thing is: every time when I access that dynamic check code action. system wil

Re: [Bulk] Re: [struts] "stream" result type

2008-03-11 Thread Euphreme Rinfrett
Excellent, this is great and made everything work. Thank you very much for the quick response. - Pascal Dale Newfield wrote: Euphreme Rinfrett wrote: I'm trying to use to "stream" result type to get some images to display within a portal. class="d

Re: "stream" result type

2008-03-11 Thread Nils-Helge Garli Hegvik
to put them in the application scope of the portlet session. Luckily, this is directly supported in the new portlet 2.0 secification. Nils-H On Tue, Mar 11, 2008 at 9:52 PM, Euphreme Rinfrett <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to use to "stream"

Re: [struts] "stream" result type

2008-03-11 Thread Dale Newfield
Euphreme Rinfrett wrote: I'm trying to use to "stream" result type to get some images to display within a portal. class="displayExerciceAction"> ${model.imageContentType} ${model.image} name=&

"stream" result type

2008-03-11 Thread Euphreme Rinfrett
Hi all, I'm trying to use to "stream" result type to get some images to display within a portal. Based on the wiki page: http://struts.apache.org/2.x/docs/stream-result.html I did my own action that gets an image and puts it into a model. This is the struts configuration

Re: Parsed contentType in Stream result type, JR plugin

2007-03-29 Thread Dale Newfield
Patrick J Kobly wrote: 'twould be useful to be able to get StreamResult to take the contentType param as an index into the value stack (I have an action that determines content type based on user input). If you include true then you should be able to include OGNL expressions (in "${"..."}") in

Parsed contentType in Stream result type, JR plugin

2007-03-29 Thread Patrick J Kobly
G'day, Don't know if this has been mentioned before, but 'twould be useful to be able to get StreamResult to take the contentType param as an index into the value stack (I have an action that determines content type based on user input). Worked around this by extending StreamResult and overr