JSP跨iframe如何传递参数实现代码 |
本文标签:JSP跨iframe,传递参数 表单与操作页面分离 按钮按下,click 或者onclick事件触发 传递一个唯一性的参数至子页面JSP, 子页面内,负责查询与判断逻辑, JSP:FORWARD尝试过,直接报错 复制代码 代码如下: <script type="text/JavaScript"> function tigger() { var f_application =1; <jsp:forward page="input.jsp"> <jsp:param name= "t_application" value=<%=f_application%>> </jsp:forward>> } </script> 子页面 复制代码 代码如下: <% String tf_application=(request.getParameter("t_application")); %> <%=tf_application%> <% if(tf_application !=null) { tf_application = null; } %> <%=tf_application%> 尝试使用request或者session,如何使用onclick属性在getAtturibute上使用是个难题 |