有问题请教,关于两窗体间传值问题
joke1.jsp
<%
String s = "";
String hid_value = request.getParameter("hid_joke");
if(hid_value != null){
s = hid_value;
}
%>
<html>
<script language="javascript">
function pop() {
var url = "joke2.jsp";
showModalDialog(url,"","dialogWidth:800px;dialogHeight:600px;");
}
</script>
<body>
<form name="form1" action="" method="post">
<input name="text_test" type="text" value="<%=s%>"> <input type="submit" name="btn_test" onclick="pop()">
</form>
</body>
</html>