jsp 得到当前的路径

    技术2022-05-11  76

     <%@   page   language="java" contentType="text/html; charset=gb2312"  import="java.io.*"%>

    <%    String strAbsPath=application.getRealPath("");    strAbsPath = strAbsPath + "//";   strAbsPath = strAbsPath.replaceAll("","");  out.print("<script>alert('"+strAbsPath+"');</script>");

    %> 


    最新回复(0)