Re: How to show PDF file in jsp page II.

2002-11-06 Thread Jiri_Nejedly
I tried it , it works, but I have one great suspicion: Will it work even on remote server ? response.sendRedirect(outPDF); // outPDF is C:/Program Files/Apache Tomcat 4.0/Fop/TMP.PDF I have Tomcat and browser on one PC . Doesn't the browser thus open the PDF file directly, bypassing

Re: How to show PDF file in jsp page II.

2002-11-06 Thread Marko Petersen
Hi, your PDF file has to be accessible for tomcat, for example: Imagine your web application is stored under %TOMCAT_ROOT%/webapps/yourapp Then your PDF file has to be somewhere in your 'yourapp' directory. It is the same as html pages: you referene them (e.g. in html) with a href=foo.html -

Re: How to show PDF file in jsp page II.

2002-11-06 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote: I tried it , it works, but I have one great suspicion: Will it work even on remote server ? Why not? Just make sure you save it in a place browser has access to. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel

Re: How to show PDF file in jsp page II.

2002-11-05 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote: Yesterday, after a few good advices there from fop users I successfuly used this code to show pdf content in browser. It works in my JDeveloper 9i. File inputFile = new File(pdfFile); FileReader fr = new FileReader(inputFile); ByteArrayOutputStream baos = new

Re: How to show PDF file in jsp page ?

2002-11-04 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote: I successfully created PDF , but now I don't know how to make browser show it like PDF (Acrobat is installed, when I open file directly in browser, all is ok). Take a look at docs/examples/embedding/FopServlet.java as an example how to return pdf. What must I do, to make

Re: How to show PDF file in jsp page ?

2002-11-04 Thread Jiri_Nejedly
Thanks to all, this code works ... File inputFile = new File(pdfFile); FileReader fr = new FileReader(inputFile); ByteArrayOutputStream baos = new ByteArrayOutputStream(); int ch; while((ch = fr.read()) != -1) {