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!

How to upload file with a form with multiple fields

843836Feb 7 2005 — edited Mar 26 2005
Hi,

I have a form which has around 10 other fields apart from the input type file for the file to be uploaded from the server. I have a main page which is validated in the second jsp and if it is validated fine for all the netries then it goes to third jsp by sendredirect for further action on database. Here on this jsp I have to do some more validation against the database and if evrything is fine then do the updation in database and upload an image file selected on first screen to the server. On the second or third jsp if there is any error for input or against the database I go back to first screen with error message without upload.

Now my problem is that I am using sendredirect to go to third jsp and there I have to actually upload the file, but how do I pass the content from the first screen jsp to the third from second with sendredirect ?

Any help is really appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2005
Added on Feb 7 2005
11 comments
693 views