JSP
JSP 확장자 구하기
엘로드넷
2015. 4. 18. 08:19
JSP 확장자 구하기 :
String filePath = "/www/test.jsp";
int pos = filePath.lastIndexOf( "." );
String fileExt = filePath.substring( pos + 1 );
out.println("파일확장자는: "+fileExt);