JAVA
JSP 확장자 구하기
엘로드넷
2019. 1. 8. 21:53
JSP 확장자 구하기 :
String filePath = "/www/test.jsp";
int pos = filePath.lastIndexOf( "." );
String fileExt = filePath.substring( pos + 1 );
out.println("파일확장자는: "+fileExt);