This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file attachment

 
Ram Gouda
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have jsp page with browse button and a list in the bottom.. After selecting a file from local file system, I click "attach" button, to add the file to the list . Please help me to write code.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ram B",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ram B:
I have jsp page with browse button and a list in the bottom.. After selecting a file from local file system, I click "attach" button, to add the file to the list . Please help me to write code.


Where is the problem? In clicking the browse/attach button or adding the file name in the list.

If you have the problem with uploading the file to server then check out JSP FAQs Fileupload
 
Ram Gouda
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adeel Ansari,
Thanks for your reply. Actually in struts Action class I uploaded file and setAttribute("fileArray", files)in request scope. How I get these filename into my Jsp page so that each time I attached a file the file name is attacehd to the list in jsp page.

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic