Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2004, 07:36 PM
Registered User
Join Date: May 2004
Location: , , .
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?

Reply With Quote
The Following User Says Thank You to dmitry For This Useful Post:
hhlai1990 (September 17th, 2010)
  #2 (permalink)  
Old July 11th, 2004, 08:15 AM
Registered User
Join Date: Jul 2004
Location: , , .
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.


Reply With Quote
  #3 (permalink)  
Old August 10th, 2004, 07:31 AM
Friend of Wrox
Join Date: Jul 2004
Location: , , India.
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.

Reply With Quote
  #4 (permalink)  
Old October 5th, 2007, 08:18 AM
ski ski is offline
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

please look out this



Reply With Quote
  #5 (permalink)  
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?
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:26 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.