This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes file attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file attachment" Watch "file attachment" New topic
Author

file attachment

Ram Gouda
Greenhorn

Joined: Feb 18, 2006
Posts: 4
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

Joined: Jan 10, 2002
Posts: 61457
    
  67

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Feb 18, 2006
Posts: 4
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,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file attachment