tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Struts-Tiles - Missing Content
Date Wed, 09 Jul 2008 13:49:58 GMT
2008/7/9 Ryan Henson <nwstraith@yahoo.com>:
> I think I have found a strange behaviour in the Struts-Tiles framework that I am attempting
to pin down and understand.

First of all, what version of Struts and Tiles are you using?

> I've been experimenting with multiple variations on how to accomplish
> this so my below code is a little messy, but it does create and return
> a PDF, but it is missing the content it should have. As far as I can
> tell from the order of events the following occurs. I open my browser
> to the makePDF.do action which sets up an HttpURLConnection to the
> getReport action. The getReport action then forwards to the tiles name
> which retrieves the layout jsp and is where it should insert the tiles
> attributes and get the report content. This is where it breaks down
> however and the only HTML that is returned is from the layout page.

You're mixing PDF and HTML. Do you want to return a PDF to the user?
So use directly the HttpServletResponse.

> My goal is to simply convert the resulting HTML code into a PDF
> document, so if there is another approach I could take I am open to it.

Neither Struts nor Tiles can help in this.

Antonio

Mime
View raw message