• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

how to upload form data and image using jsp

 
Greenhorn
Posts: 3
  • 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---------------------

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • 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
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache library is commons-fileupload.
 
montero mitdash
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you am working on it
 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!