Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 30th, 2001, 05:09 PM
dodgie dodgie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Northampton, England
Posts: 74 dodgie Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 8 h 46 m 20 sec
Reputation Power: 0
Simple text file upload from a form?

Hi,

Can anyone point me in the right direction for a decent tutorial on uploading a file from an html form for use in a jsp page?

I am trying to enter comma separated data from a web page into a database. I have already tried doing it using a <TEXTBOX>, submitting it to my jsp program as a String and using StreamTokenizer() but I think that <TEXTBOX> must do something to the text as no matter what I try I cannot get StreamTokenizer to recognise end of lines.

So now I am thinking about allowing the user to upload a .csv file containing the data to the page. I have found some information here:

http://www.jguru.com/faq/view.jsp?EID=160

but it seems quite complicated and a little more than I actually need (I only need to upload one file, not multiple files, or impose lots of restrictions on the types of files to be uploaded etc. as a lot of the sample codes provide).

Does anyone out there know of a good simple tutorial on how to do this? Or does anyone have the source code for a simple, single file uploader that allows me to simply open the file uploaded as a 'Reader' object (or something that can be converted into one) so I can fire it into my StreamTokenizer?

Thanks

Richard
__________________
Think of the most annoyingly simple question and I've probably asked it on here!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Simple text file upload from a form?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT