Import Page with Parameter Passing : import « JSTL « Java Tutorial






<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<c:import url="header.jsp">
  <c:param name="title" value="Welcome to Page 1"/>
</c:import>

<h4>Page 1 information</h4>

We're pleased to introduce <b>Page 1</b>, our newest,
most cost-effective product.

</body>
</html>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<table width="100%">
  <tr>
    <td align="left" bgcolor="#888888">
      <big><font color="#FFFFFF">
        <c:out value="${param.title}"/>
      </font></big>
    </td>
    <td align="right">
      <small>
        Import example application
      </small>
    </td>
  </tr>
</table>

<hr />
  Download:  JSTLImportPageWithParameterPassing.zip( 939 k)








24.24.import
24.24.1.Import Web Page by URL
24.24.2.Import Page with Parameter Passing