I'm not sure what you mean by "I want to pop the print
option".  I'm also not clear about the abilities of
having PDF within a JSP page--or "directing the PDF to
a new JSP page".   JSP is translated server-side, and
comes back to the client as an HTML stream.  Normally
you send the PDF back to the client by itself on the
response stream, after setting the MIME type to
"application/pdf".  But I'm far from being a JSP
expert, it may have several capabilities I'm just
unaware of.

Perhaps our sample FOP Servlet code may be of help to
you:
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/java/org/apache/fop/servlet/FopServlet.java?rev=1.4

Also, selecting the Sun JSP forum at
"http://forum.java.sun.com/forum.jsp?forum=45"; and
searching on "PDF" gave 178 responses...you may find
your answer there; failing that, at the nearby Servlet
forum.  If you're using Struts, the Struts User ML is
excellent.

Glen

--- Sonu <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I am using Apache FOP for PDF generation in our
> project where we generate the PDF on the fly. After
> I
> form the XML from the database data and applying
> XSL:FO (XSL) on that. When I select some items and
> press the print button on one browser page, I am
> able
> to open a new window where I am directing the PDF
> output to that new JSP page and I am able to see the
> output the way I want it. 
> 
> The only problem is that I want to pop the print
> option just like we do using the onload feature of 
> javascript function (window.print()). This doesnt
> seem
> to happen when I am using a PDF within a JSP
> page....Has anyone tried to do this ?
> 
> Please suggest.
> 
> Thanks,
> Sonu
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to