JSP跨iframe如何传递参数实现代码
更新时间:2013年09月21日 11:41:57 作者:
表单与操作页面分离,按钮按下,click 或者onclick事件触发,传递一个唯一性的参数至子页面JSP,感兴趣的朋友可以了解下
表单与操作页面分离
按钮按下,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上使用是个难题
按钮按下,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上使用是个难题
相关文章
javascript小组件 原生table排序表格脚本(兼容ie firefox opera chrome)
javascript小组件 原生table排序表格脚本 兼容ie firefox opera chrome,需要的朋友可以参考下2012-07-07ES6中的class是如何实现的(附Babel编译的ES5代码详解)
这篇文章主要介绍了ES6中的class是如何实现的?(附Babel编译的ES5代码详解),小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧2019-05-05
最新评论