JSP File Upload or Read
843835Oct 11 2002 — edited Oct 12 2007Hi, 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!