dnf鬼剑士排行2017:请教JSP高手,如何动态生成新页面?

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 20:48:27

最简单的方法就是:
<%@ page contentType="text/html; charset=UTF-8" %>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title></title>
</head>
<body>
<c:import url="http://www.baidu.com" var="a">
</c:import>
<textarea cols="" rows="">${a}</textarea>
</body>
</html>

再用FileWriter写入。。。不用说了吧。

Good Luck!