0
JSP 페이지에 문제가 있습니다. type = "file"입니다.jsp type = "file"문제
<h4>Link:<input type="file" name="linkFile" value=""/></h4>
내 서블릿에서 istruction 호출 할 때 :
System.out.printf(request.getParameter("linkFile"));
반환 문자열은 파일의 이름과 경로가 아닌입니다.
파일 이름뿐만 아니라 경로를 가져 오는 방법이 있습니다.
감사합니다.
[HTML 입력에서 파일 경로를 얻는 방법?] (http://stackoverflow.com/questions/81180/how-to-get-the-file-path-from-html-input-form- in-firefox-3) 요점 : 파일 경로에 관심을 두지 말고 파일 내용에 관심을 가져야합니다. Apache Commons FileUpload를 사용하십시오. – BalusC