Wrox Programmer Forums
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 19th, 2004, 03:30 PM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Downloading PDF

I have an applet that creates PDF output (I used iText) based on user input, and I want to download the PDF output to the user.

I can write a servlet that creates the necessary PDF output, but I don't know how to add it to or combine it with my applet. Servlets seem to be independent programs.

Has anyone downloaded PDF files via an applet? Or is there a better way to do it?

Help!

ms

 
Old September 20th, 2004, 05:05 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I havent got into using applets as I read they were a bit out dated. Alternatives may be to save the pdf to file, and embed a reference to it in one of your pages. It should also be possible to output the file directly from the datastream without having to save the file but I couldnt tell you how to do it, the sun java forums would be a better place to look.










Similar Threads
Thread Thread Starter Forum Replies Last Post
Dot net - Converting word to pdf and pdf to word Manoah Classic ASP Basics 2 July 7th, 2008 10:21 PM
Face problem while downloading PDF file with IE 6 Snowby Pro PHP 1 April 23rd, 2008 02:12 AM
Downloading a File RobC ASP.NET 2.0 Basics 4 February 4th, 2006 09:37 PM
Downloading Images priti VBScript 3 June 21st, 2005 02:08 AM
downloading files serge Classic ASP Professional 4 September 8th, 2003 10:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.