On Wed, Sep 24, 2003 at 01:01:18PM -0700, Francisco Hernandez wrote: > Philipp Meier wrote: > > > > >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()); > > } > >}
[ Fixed quoting ] > how about creating a somekind of PdfResult? It's a matter of taste in this case. JSP views aren't produced by a Result, neither. However, in this case one would not benefit of the servlet mapping that enables one to use different templates like the VelocityServlet does and therefor a Result might be a better approach. -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