There's one important thing to do, too : don't forget to set the mime-type,
else it will be text/plain or text/html, and your browser will display your
byte stream as text....
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 6:40 PM
Subject: Re: What is the best way to display pictures from a database usin g
Struts


> It surely does help,  I shall put it to work now!
>
> Cheers
>
> Tony
>
> Jesse Alexander (KABS 11) wrote:
>
> > Hi,
> >
> > from an Action's perform() you can do two things:
> > a) do something (usefull) and return an ActionForward-object
> > b) do somthing (usefull), write the desired output (html, pdf-stream,
> >    image-bytes,...) to the response-objects output (just like standard
> >    servlet-programming!) and return a NULL-object (return null)
> > in this case you want to use b). Important is returning null to indicate
> > that the Action did complete the processing. Else ActionServlet will
pass
> > on to the returned ActionForward-object...
> >
> > hope this helps
> > Alexander Jesse
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to