• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UploadImage

 
Adithya Menon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I need to upload image file to webserver(and save it) from the
webbrowser using struts.Please help
thanks in Advance
Aditya
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the client side you need a file upload form field, while the server side can be handled be a library like Jakarta Commons FileUpload; see this page for further links.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts you do this with a combination of the <html:file> tag and a property of type FormFile in your Actionform bean. The best way to learn how to do it is by examining the upload example in the examples war file that comes with the Struts download.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also a very good article...just go to Google, type in "struts file upload" (no quotes) and click the I'm Feeling Lucky button.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic