0
여기 내가 한 JSP로 파일을 업로드 할 때와 같은 한 가지 문제에 직면 해 있습니다. 전체 파일 경로를 읽을 수 없습니다. 나는 name.Below이 같은 파일 경로를 읽고 그jsp에서 파일을 업로드하는 동안 파일 경로를 가져 오는 방법은 무엇입니까?
<td align="left">File Path :
<input type="file" id="biometricFile_Path" name="biometricFile_Path" />
<span id="uploadsId" class="errorText" >
내 코드 만 파일을 얻고있다 ..
String fileName=request.getParameter("biometricFile_Path");
내가 파일을 갖는 경로를 업로드하고 가정 "C : \ Users \ apanigrahi \ Desktop \ test.xls" 하지만 요청 객체를 통해 값을 가져 오는 동안 test.xls 만 가져옵니다.
Try'request.contextPath' – user75ponic