Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Nicole Swan

Greenhorn
+ Follow
since May 24, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nicole Swan

I have written the code to upload and download a file from an Oracle database. (After trying various 3rd party beans for this, I broke down and wrote the code myself using the MultipartParser in the com.oreilly.servlet package) One problem though, is that my code only seems to work for text files. I've read that you somehow have to use the file content-type to download different types of files correctly, but I'm not quite sure how or where to use that information.
Also, ultimately, I would like to have the filenames available listed as urls that when clicked would download the appropriate file and prompt the user to choose whether they want to open it from the current location or save it to disk (as is usually done with files in browsers). I have no idea how to do this. If anyone has any ideas, I would be very grateful for your help.
My code:

Thanks in advance!
--Nicole
[ July 26, 2002: Message edited by: Nicole Swan ]
Maybe check out http://www.coreservlets.com. This site has tutorials on JSP, servlets, and java beans as well as a good tutorial on setting up Tomcat.
19 years ago
JSP
I may be wrong, but doesn't Oracle require a date in a format similar to: 07-JUN-2002
19 years ago
JSP
I am currently starting/working on a project where I am using jsp/java to upload and download files. I have found beans for the upload/download, but here's my question. Does anyone have any arguments for using a file structure storage plan as opposed to using a database to store the files that are uploaded?
I would really like to hear any arguments one way or the other.
Thanks!
--Nicole
19 years ago
JSP
I received the same error when I installed Tomcat 4.0.3. It's caused by the JAVA_HOME env variable not being set.
19 years ago
I'm glad you got it to work. However, I don't know if updating your JDK version was the solution...I'm using JDK1.3.1. with Tomcat 4.0.3.
19 years ago