Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP File Upload or Read

843835Oct 11 2002 — edited Oct 12 2007
Hi, I'm trying to find a way to upload files using jsp. I've created a form, where the user can select a file to upload. Once the submit button in clicked, it calls my jsp, but I'm not sure how to upload the file. I'd rather not put a jar file in the lib directory.

Alternatively, I know that the user will only upload a text file, so I could just read that file instead of actually making a copy of the uploaded file on the server. Is there a way to do that in JSP?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2007
Added on Oct 11 2002
12 comments
807 views