In this case, you may need to have one more hidden field for uploading the file to the server before you send out the request.
This is because, even if a JSP get the value of "sel" as "C:\xxx\yyy.zzz", the JSP cannot read the file from your harddisk, cos JSP is resided in remote, not your machine!
You should have a html form with the attribute
enctype="multipart/form-data", such that the file will be uploaded.
I dont know how JSP solely can perform the upload, as I use
Struts to perform the upload. So, when Struts get the form, it knows where the file is located at the server, and use the info to get back the file.
Nick.
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)