There's also an example on the Ajax page. * http://struts.apache.org/2.x/docs/ajax.html
The Ajax example is returning text, but it could just as easily stream back a PDF. -- HTH, Ted <http://www.husted.com/ted/blog/> On Nov 27, 2007 6:37 AM, Omkar Patil <[EMAIL PROTECTED]> wrote: > > I'm sorry the example is messed up as it contains xml. Here is the link for > it - > > http://struts.apache.org/2.x/docs/stream-result.html > > > > Omkar Patil wrote: > > > > Julien, > > > > I could be completely off-mark here. If I understand correctly you are > > planning to generate a PDF (or an image) and then send it to the browser. > > This can be achieved using the Stream Result. Here is the code snippet > > from the S2 documentation - > > > > <result name="success" type="stream"> > > image/jpeg > > imageStream > > filename="document.pdf" > > 1024 > > </result> > > > > Hope this helps. > > > > - Omkar > > > > > > Julien Leonard-2 wrote: > >> > >> Hello all, > >> > >> I want to develop an action that return an image. This image is based on > >> a image file and a text put in the middle of the image. > >> I've look at JasperReports and I think that is to complicated for my > >> use. > >> I think that I can do this with a simple xslt-fo and FOP to create a > >> PDF, but I don't see how to plug FOP in Struts2... > >> Maybe, I have to create a custom result type that use FOP? > >> > >> Can somebody help me? > >> > >> Julien --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]