Hi,

In case u r using Struts

1) In HTML / JSP page use <INPUT type="file" .../>, this field is where user
would be 
   interacting and setting file path. The form containing this button, must
have encoding type
   set to multipart/form-data i.e. enctype="multipart/form-data"
2) Create an action class that gets invoked then user clicks submit button
3) Use Apache Commons File upload APIs to retrieve form data as well as
uploaded file.

In case u r not using Struts & using Servlet, then step 2 above changes to
Creation of Servlet,
that would do the same.

Thanks & Regards,
Kailash

-----Original Message-----
From: Dao Xuan Nam [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:36 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: J2EE application - Upload one or more files on client to server


Hi all,

In our application, I have to implement a function to upload one or more
files on client's machine to server? But i do not know how to
implement it using J2EE technologies such as JSP, Servelet?

Thank you very much

Nam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Global Leadership in eBusiness and IT services, vertically aligned for
clients in the automotive/discrete manufacturing, SAP,ERP and powered by an
offshore-based global delivery model.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to