Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getParameter() not working in MULTIPART

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
I'm developing a Human Resource Management Program. I have to upload the photo of the Employee along with the employee id

In the jsp page i have the following


and I got a piece of code for uploading files to the Server
upload_image.jsp


The uploads works perfectly, and save it in the server without any problem. But I want this code to insert in a database with the employee id and image_path and image_name

Please help me Ranchers to sort this out

Thanks/Regards

Aravind Prasad
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right.

request.getParameter doesn't work with multipart uploads.
You'll need to check the documentation for the upload library you're using to find out how to retrieve form parameters.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!