Connecting Tech Pros Worldwide Forums | Help | Site Map

JSP code needed for browse(to attach a file)

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 30 '07
Hi All,
Could you please help me out with a piece of code.
I need to write a code for attaching files using Browse option.Say when you click the Browse button,it should take me to a page where I can attach multiple documents.

Please could you help me out.

Thank you in advance


Regards

Malaya

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: May 1 '07

re: JSP code needed for browse(to attach a file)


Will these files be used for uploading?

You can simply use HTML for this functionality and server-side code for the actual uploading. The HTML is:
[HTML]<input type="file" name="attachfile">[/HTML]
Newbie
 
Join Date: Jun 2007
Posts: 17
#3: Aug 1 '07

re: JSP code needed for browse(to attach a file)


Hi,
I have to write a code in which i have to create a button by clicking that i have to attach some files to that. Please help me urgent i have to complete that today itself please help
Thanks in advance...
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Aug 1 '07

re: JSP code needed for browse(to attach a file)


Quote:

Originally Posted by kittu532

Hi,
I have to write a code in which i have to create a button by clicking that i have to attach some files to that. Please help me urgent i have to complete that today itself please help
Thanks in advance...

How many files do you need to attach? Some simple HTML coupled with server-side code should do the trick.
Reply