inculde的用法
jsp1
----
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>jsp1</title>
</head>
<body >
<%
//out.println(???);-----------------------------------AAAA
%>
<%--@ include file="jsp2.jsp"--%>
<jsp:include page="jsp2.jsp" >
<jsp:param name="ZTBZ" value="检修" />
</jsp:include>
</body>
</html>
----------------------------------------------------
jsp2:
----
<script language="JavaScript">
function Jumping(){
document.PageForm.submit();
}
</script>
<input type="text" name="userName">
<input type="button" value="确定" name="action" onclick="Jumping()">
-------------------------------------------------------------------------
我的问题是这样的:
打开了jsp1页面(同时也打开了jsp2页面),在jsp2里有文本、按扭。当点按扭时,把文本里的内容显示在jsp1里(即AAAA处)。请问:可以通过inculde的方法来实现吗?