JSP 확장자 구하기

JAVA 2019. 1. 8. 21:53

JSP 확장자 구하기 : 

 

String filePath = "/www/test.jsp";
   int pos = filePath.lastIndexOf( "." );
   String fileExt = filePath.substring( pos + 1 );
   out.println("파일확장자는: "+fileExt);



블로그 이미지

엘로드넷

,