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.
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.
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:
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.
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
Don't get me started about those stupid light bulbs.