웹 이미지 업로드1 [JSP] 이미지 업로드하기 위해 웹서버 폴더 경로에 접근하는 방법 2가지 방법 내용 부가설명 1 String configFolder = config.getServletContext().getRealPath("접근할 폴더명"); * getRealPath : 폴더에 접근하기 위한 메서드로 생략하면 웹서버 폴더 기본 위치까지만 접근 * 기본 위치 : C:\워크스페이스명\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\프로젝트명 * .getRealPath("eaxm")을 쓰면 eaxm폴더까지 접근. C:\워크스페이스명\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\프로젝트명/eaxm 2 String saveFolder = "접근할 폴더명"; String .. 2022. 2. 9. 이전 1 다음 728x90 반응형