Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics 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 December 10th, 2004, 07:56 AM
Registered User
Join Date: Dec 2004
Location: Mumbai, Maharashtra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nishant_k
Default attachments

can some1 please help me with attachments wht i want to do is attach files(which i can do) and display it on the next page. i'm not even getting this that how to store the attached files in database because they can be of any format a zip file a wrd format etc. please help me
i need ur help soon............

Reply With Quote
  #2 (permalink)  
Old December 10th, 2004, 04:15 PM
Friend of Wrox
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts


As explained before you will have to parse the data from the POST method to reconstruct the file. The format of file is irrelevant, the program you write should reconstruct whatever the file was originally.

What you need to do now is:

1 Create an HTML form that uses the post method as described by another user in your previous post.

2 Write a servlet to parse and reconstruct the file on your SERVER.

3 Once the file is reconstructed you can save it to file on the server, or put it into a database.

These are the steps you must take, you cannot simply 'attach' a file, this is not E-mail!

You send a data stream to the server, you need to convert this back to file.

Reply With Quote
  #3 (permalink)  
Old December 10th, 2004, 04:19 PM
Friend of Wrox
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts


I mistook you for another user, there is another thread on this topic:


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
Regarding Attachments mvnaidu ASP.NET 1.0 and 1.1 Professional 2 June 26th, 2006 07:49 AM
GMail Attachments prophet Javascript How-To 3 January 24th, 2006 03:03 AM
Email with Attachments echovue Access 2 March 22nd, 2005 10:36 AM
attachments lily611 Forum and Wrox.com Feedback 1 June 15th, 2004 08:37 AM
Email w/Attachments aingalsbe PHP How-To 1 June 25th, 2003 04:48 AM

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

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