Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to upload form data and image using jsp

 
montero mitdash
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone ,i want to upload form data and image to database but nothing is inserted into database as all the columns returns null.
i know that getParameter does not work under multiforms so i develop a javascript that can upload many form at a time
using one submit button but still yet nothing is inserted into my database.
please i need your help.below is the code

-----------------lion1.jsp---------------




----------------------lion.jsp---------------------

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please indent your HTML/JavaScript... and I generally recommend against using with--almost always causes more problems than it solves :)

You can't submit more than one form at once--and trying to pretend you can is likely to end with tears. Why not just use a multipart form library, like the one offered by Apache?
 
montero mitdash
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much sir am using apache-tomcat 6.0.16.how do i get or locate the multiform library
thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache library is commons-fileupload.
 
montero mitdash
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you am working on it
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic