aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to upload form data and image using jsp