Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE 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 May 26th, 2004, 07:36 PM
Registered User
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default Download code for Beginning Java2 JDK1.2

I cannot find a code for this edition.
Could anybody help me?

The Following User Says Thank You to dmitry For This Useful Post:
hhlai1990 (September 17th, 2010)
Old July 11th, 2004, 08:15 AM
Registered User
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

I got the code you want. You can get from http://support.apress.com/books.asp?bID=1861002238&s=0

I used that yesterday and it is there.


Old August 10th, 2004, 07:31 AM
Friend of Wrox
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr

Source : http://www.ideas2work.com/jsp-code-download.html

Code for downloading a file with a save as window with an exact file name.

Want to write a download link for allowing user to have a
Save As window popup and on clicking save as button,should have the same name as the file
Here is a sample servlet code for your use:
    ServletOutputStream out = response.getOutputStream();
    response.setHeader("Content-Disposition", "attachment;filename="+fileName);
    in = new FileInputStream(fileName);
    int availableLength = in.available();
    byte[] totalBytes = new byte[availableLength];
    int byteData = in.read(totalBytes);

This code works and perfectly fine.

Old October 5th, 2007, 08:18 AM
ski ski is offline
Registered User
Join Date: Sep 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

please look out this



Old September 17th, 2010, 09:30 AM
Registered User
Join Date: Sep 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default gawhhawawwwwwwwwwwww

Originally Posted by dmitry View Post
I cannot find a code for this edition.
Could anybody help me?

Similar Threads
Thread Thread Starter Forum Replies Last Post
who have the answer of Beginning Java2 ,JDK 5 bhq4418 Java Basics 9 November 9th, 2007 03:18 AM
i need the code which <BEGINNING C#>,i download it whoami521 All Other Wrox Books 0 April 15th, 2005 08:49 AM
download code for Beginning JSP 2.0 kp_kurian JSP Basics 5 August 5th, 2004 10:31 PM
Where can I download book code - beginning jsp hungtao JSP Basics 7 April 7th, 2004 01:13 AM
Beginning ASP Databases - Download Code PGO All Other Wrox Books 1 September 23rd, 2003 11:45 AM

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