how about creating a somekind of PdfResult?

I think ww 1.3 had a pdf view, not sure..

Philipp Meier wrote:

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.





------------------------------------------------------- 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

Reply via email to