개발

jsp 파일의 서버상의 디렉토리 현재위치

에드몽단테스 2011. 8. 23. 15:53
String cpath = new File(request.getServletPath()).getParent();
String localPath = application.getRealPath(cpath);
out.println(localPath);

반응형