RE: struts actions and content/type responses

2004-02-12 Thread Michael McGrady
Don't forget to return the null? At 04:35 AM 2/12/2004, you wrote: thank you mark, that worked a treat :-) cheers, Ben -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 12 februari 2004 12:45 To: Struts Users Mailing List Subject: Re: struts actions and content

Re: struts actions and content/type responses

2004-02-12 Thread Michael McGrady
I provided the code to do this about two weeks ago on this list. At 03:30 AM 2/12/2004, you wrote: hello, i am looking for a solution for the following problem: in my database i have various BLOB items which represent images (gif or jpg). i would like to create a struts action which returns thi

RE: struts actions and content/type responses

2004-02-12 Thread Turner Benjamin
thank you mark, that worked a treat :-) cheers, Ben -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 12 februari 2004 12:45 To: Struts Users Mailing List Subject: Re: struts actions and content/type responses OutputStream ou = response.getOutputStream(); java.net.URI

RE: struts actions and content/type responses

2004-02-12 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 19:42 To: Struts Users Mailing List Subject: Re: struts actions and content/type responses Hi Friend's I am trying to upload strut1

Re: struts actions and content/type responses

2004-02-12 Thread Mark Lowe
Hi ben I assume you know how to get request parameters, construct query strings and get a byte array from you db. Here's some code that will stream an image. This should get you far enough to adapt to you needs. if you use an action just return null instead of a forward, or just use a servlet.

Re: struts actions and content/type responses

2004-02-12 Thread Jignesh Patel
Hi Friend's I am trying to upload strut1.1 on the weblogic8.1 Any body guide me for the same? -jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: struts actions and content/type responses

2004-02-12 Thread Turner Benjamin
, Fredy [BILBOMATICA] [mailto:[EMAIL PROTECTED] Sent: 12 februari 2004 12:34 To: Struts Users Mailing List Subject: RE: struts actions and content/type responses Hi Ben, I'm not sure if I understood you well, but I believe it's as simple as coding the Action just like you said and inse

RE: struts actions and content/type responses

2004-02-12 Thread Andrew Hill
Your ImageAction could stream the result in the appropriate format itself. When done, return null instead of an ActionForward to indicate to struts that the Action has already handled writing the response. Not sure what headers etc... need to be set though. If you search the archive you can proba

RE: struts actions and content/type responses

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi Ben, I'm not sure if I understood you well, but I believe it's as simple as coding the Action just like you said and inserting the corresponding URL to call it (I suppose it would have to include the imageID as a parameter) inside, let's say, the "src" attribute on an tag. HTH, Freddy. --