<script>
function getSheet()
{
var sendText = "hello";
document.branchform.sendText.value=sendText;
document.branchform.action="test.jsp";
document.branchform.submit();
}
</script><input type=hidden name = "sendText" value = "">提交后从request中得就可以了
function getSheet()
{
var sendText = "hello";
document.branchform.sendText.value=sendText;
document.branchform.action="test.jsp";
document.branchform.submit();
}
</script><input type=hidden name = "sendText" value = "">提交后从request中得就可以了
解决方案 »
- Extjs 与 struts2 实现 异步加载树的实例 急用啊!!!!!!!!!!!
- 关于iframe的clientX或着通过iframe的contentWindow反找element
- 请问call(),apply()的具体用法
- 将左边的内容 点击按钮 添加到右边去 谁会做
- 隐藏的iframe中,form的submit总是失败
- 请问怎么保存页面状态,包括javascript状态
- js菜单问题,这里给100分,解决问题另有300分相送,不够还有
- window.open问题求解
- 请问弹出WINDOWS对话狂怎么做啊
- 散个文本渐变背景代码先
- javascript 中如何遍历删除cookie
- 求救:JS判断
VAR sendText这个变量!有什么方法呢?
这句不是把 sendText 这个变量 ,赋给表单中
<input type=hidden name = "sendText" value = "">
了么
在test.jps 中,request.getParameter("sendText");
就可以了啊
function getSheet()
{
var sendText = ="hello";
document.branchform.action="test.jsp?sendText="+sendText;
document.branchform.submit();
}
</script>