On Wed, Sep 24, 2003 at 08:22:53AM -0600, Thompson, Kris wrote:
> Long story gone VERY short is that it will be created in a class that extends
> ActionSupport. So unless I am missing something I don't have access to the response
> object therefore the method below is not available to me, right?
Yes. I'd suggest creating the report in your action and using a simple
servlet as result to send the report to the client:
// Pseudo code, please adjust
public void PDFServlet extends HttpServlet {
public void doRequest(request, response) {
ServletValueStack stack = ServletValueStack.getStack(request);
PDFDocument doc = stack.findValue("/pdfDocument");
response.setContentType("application/pdf");
response.getOutputStream().write(doc.getAsBytes());
}
}
-billy.
--
Meisterbohne Meisterbohne GbR, K�fner, Mekle, Meier Tel: +49-731-399 499-0
eL�sungen S�flinger Stra�e 100 Fax: +49-731-399 499-9
89077 Ulm http://www.meisterbohne.de/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork