[Logo]
Forums Register Login
file attachment
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
"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
 
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
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,
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 21, 2017 15:30:27.