摘要: 一、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 阅读全文
posted @ 2013-01-28 16:57 RattanyiXu 阅读(13840) 评论(1) 推荐(0) 编辑
摘要: <jsp:include page="file/A.txt"></jsp:include>等于<%@include file="file/A.txt"%> 阅读全文
posted @ 2013-01-28 16:46 RattanyiXu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <%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 阅读全文
posted @ 2013-01-28 16:28 RattanyiXu 阅读(807) 评论(0) 推荐(0) 编辑
摘要: commom.jsp<%@page import="java.io.*" %><%String fileName = application.getRealPath(request.getRequestURI());String rootPath = new File(new File(fileName).getParent()).getParent();%> 阅读全文
posted @ 2013-01-28 16:24 RattanyiXu 阅读(1729) 评论(0) 推荐(0) 编辑