window.open ("3.jsp?user_id="+user_id+"","newwindow", "height=100, width=400") 请问这一句编码有问题吗?? window.open ("3.jsp?user_id='+user_id+'","newwindow", "height=100, width=400") 这样试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看错了。这样吧window.open ("3.jsp?user_id="+user_id,"newwindow", "height=100, width=400") 不行接受到的是‘user_id’不是里面的值!! window.open ("3.jsp?user_id=user_id","newwindow", "height=100, width=400")这样可以显示user_id 但是不是里面的值,我要得到里面的值该怎么做!!! window.open ("3.jsp?user_id="+"<%=user_id%>","newwindow", "height=100, width=400") sorrytry this one:window.open ("3.jsp?user_id=<%=user_id%>","newwindow", "height=100, width=400") window.open ("3.jsp?user_id="+user_id,"newwindow", "height=100, width=400") <html> <head> <script LANGUAGE="javascript"> <!-- function openwin(){ var user_id = "ss";window.open("3.jsp?user_id="+user_id,"newwindow","height=100,width=400,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");} --> </script> </head> <body onload="openwin()"> ...任意的页面内容... </body> </html> 3.jsp<% out.println(request.getParameter("user_id"));%>这样可以啊 window.open("3.jsp?user_id="+user_id,"newwindow","height=100,width=400,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");这个地方最好写在一行 可以换个方法吗?可以把user_id放到session里,然后在3.jsp中通过取session来 取user_id,这样就可以避免新开窗口带参数了 怎么把这个sql语句的条件加入下面的xml jsp中图片显示不了什么原因,求解!!! input radio设置默认值??? 数据库并发问题?????????? 100分求解决分离式计数器问题 问个基本问题,POST和GET的区别! 请问如何确定用户是否登陆?谢谢!! DataGrid 中url 怎么接 struts action 里的json数据 Hibernate对象去除托管状态 jsp如何差错和看懂错误信息!!!!(JSP调试技巧) 怎么样把IE收藏夹的内容直接导出到服务器? 发布一个比较简单的输出m行n列表格的方法,一个for一个if
这样吧
window.open ("3.jsp?user_id="+user_id,"newwindow", "height=100, width=400")
try this one:window.open ("3.jsp?user_id=<%=user_id%>","newwindow", "height=100, width=400")
<head>
<script LANGUAGE="javascript">
<!--
function openwin(){
var user_id = "ss";
window.open("3.jsp?user_id="+user_id,"newwindow","height=100,width=400,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
}
-->
</script>
</head>
<body onload="openwin()">
...任意的页面内容...
</body>
</html> 3.jsp
<%
out.println(request.getParameter("user_id"));
%>
这样可以啊
这个地方最好写在一行