| |
24. 24. 1. 加载网页网址 |
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<html>
<head>
<title>Import a Page</title>
</head>
<body>
<form method="POST">
<table>
<tr>
<td width="100%" colspan="2">
Import
</td>
</tr>
<tr>
<td width="47%">Enter a site to import:</td>
<td width="53%">
<input type="text" name="url" size="20"
value="http://www.java2java.com"/>
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center">
<input type="submit" value="Submit" name="submit" />
<input type="reset" value="Reset" name="reset" />
</p>
</td>
</tr>
</table>
<P> </p>
</form>
<c:if test="${pageContext.request.method=='POST'}">
<hr>
<c:import url="${param.url}"/>
</c:if>
</body>
</html>
|
|
Download: JSTLImportWebPageByURL.zip( 1,560 k) |
24. 24. 加载 | | 24. 24. 1. | 加载网页网址 | | | | 24. 24. 2. | 导入页面参数传递 | | |
|