File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how to upload form data and image using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to upload form data and image using jsp" Watch "how to upload form data and image using jsp" New topic
Author

how to upload form data and image using jsp

montero mitdash
Greenhorn

Joined: May 02, 2010
Posts: 3
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: May 02, 2010
Posts: 3
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

Joined: Sep 29, 2008
Posts: 12617

The Apache library is commons-fileupload.
montero mitdash
Greenhorn

Joined: May 02, 2010
Posts: 3
thank you am working on it
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to upload form data and image using jsp
 
Similar Threads
how to upload using html or javascript?
image uploaded to database, but other column returns null
image is not uploaded into the database
Image preview with upload
How to Upload a file to oracle database using JSP or Servlets