Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts file upload

 
Ram Gouda
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am trying to write programme Struts Action class for file upload using Struts and Jsp and unix.I want to upload a file from local system and save it in server.Please help me in writing code.

Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going to move this to the Web Frameworks / Struts forum.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, "Ram B" Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks, and good luck. The struts forum will answer your question quickly.

Mark
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you search the Internet for "struts upload file" you will find some good info...more than I could type here. Here is one hit that looks pretty good:

http://www.roseindia.net/struts/strutsfileupload.shtml

- Brent
 
Ram Gouda
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you very much Brent. I get the file and details of the file.It displays to console. But I can not save the file in external location. I need to use output stream.

Ram
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have any example code for doing this (in my case I store the uploaded files into the database). Check the thread "Uploaded file's default location" for a few tips.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic