How to upload file with a form with multiple fields
843836Feb 7 2005 — edited Mar 26 2005Hi,
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.