<jsp:include page="file">
<jsp:param name="username" value="'value'"/>
<jsp:param name="password" value="'value'"/>
</jsp:include>
<body> <h3>使用include標籤包含jsp1.jsp</h3> <jsp:include page="jsp1.jsp"/> <h3>使用include標籤包含jsp2.jsp,使用巢狀的param標籤向jsp2.jsp傳遞引數</h3> <jsp:include page="jsp2.jsp"> <jsp:param name="username" value="'mr'"/> <jsp:param name="password" value="'mrsoft'"/> </jsp:include> </body>