摘要:
一、Include指令 <jsp:include>标签表示包含一个静态的或者动态的文件。 语法: <jsp:include page="path" flush="true" /> or <jsp:include page="path" flush="true"> <jsp:param name="paramName" value="paramValue" /> </jsp:include> 注: 1、page=&qu 阅读全文
摘要:
<jsp:include page="file/A.txt"></jsp:include>等于<%@include file="file/A.txt"%> 阅读全文
摘要:
<%String fileName = application.getRealPath(request.getRequestURI());String fileResPath = new File(new File(fileName).getParent()).getParent();File f = new File(fileResPath, "/file/MyPromise.txt");out.print(f.getAbsolutePath());FileReader in = new FileReader(f);BufferedReader buffer = n 阅读全文
摘要:
commom.jsp<%@page import="java.io.*" %><%String fileName = application.getRealPath(request.getRequestURI());String rootPath = new File(new File(fileName).getParent()).getParent();%> 阅读全文