Java/JSTL/Import
Версия от 18:01, 31 мая 2010; (обсуждение)
JSTL: Import a Page
<%@ taglib uri="http://java.sun.ru/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.ru/jstl/fmt" prefix="fmt" %>
<html>
<head>
<title>Import a Page</title>
</head>
<body>
<form method="POST">
<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111"
width="62%" id="AutoNumber1">
<tr>
<td width="100%" colspan="2" bgcolor="#0000FF">
<p align="center">
<b>
<font color="#FFFFFF" size="4">Import
</font>
</b>
</p>
</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.jexp.ru"/>
</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>