This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Uploading Zip file in mysql database(struts 1.3) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Uploading Zip file in mysql database(struts 1.3)" Watch "Uploading Zip file in mysql database(struts 1.3)" New topic
Author

Uploading Zip file in mysql database(struts 1.3)

Bhavesh Kumar
Greenhorn

Joined: Aug 12, 2012
Posts: 18
Hi Experts,
I want to upload a zip file into mysql database and then display it on JSP page to dowload it on click even. So I have written code to get that file in struts ... but I don't know how to write code to further store it in MySQL. please suggest me ...

My Action and Model Classes are :

Upload Action Class : MyAction


Form Model Class : MyModel


View JSP : index
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Bhavesh,

try this one .. Seems this will work If not then come back with the proper code and stack trace.



Regards
Jatan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Uploading Zip file in mysql database(struts 1.3)
 
Similar Threads
Map the action form object
liferay struts portlet
Getting error in error.add in Struts 1.3
Why File name is becoming null in action class ?
HOw to store image in struts?upload.FormFile