如何用超链接指向的servlet刷新其他页面 本人才学jsp,大概的看了深入浅出servlet&JSP这本书,属于绝对的菜鸟。现在我做一个后台管理,后台用了一个frameset分成了左右两部分。现在问题是在于我在左边用了一个超链接指向一个servlet,这个servlet读取一些数据以后,刷新右边的框架里的网页,这怎么做呢?我看的书里面都是只有刷新当前的网页的例子。大家帮帮忙吧,谢谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 右边那个链接的url提交到servlet~经过servlet处理后再提交到要显示的页面~要使显示的页面显示在右边~只要在url后面加上target="..."就可以了~ <a href="serveltName" target="right.jsp" />这样就可以跳转到右侧的页面。实现刷新效果。 <html><head><title>Test </title> <script>function test() {var if0 = document.getElementById("if0");if0.src = "http://www.baidu.com";}</script></head> <body> <iframe id="if0" name="if0" src="http://www.163.com" ></iframe> <a href="#" onclick="test()">测试</a></body> </html> 超链接的target属性指向框架的name<a href="<%=path %>/admin/AllUserServlet" target="table_main" > 重置用户密码</a>右边使用frameset 时在frame标记中也设置几个name 属性,我这里使用了iframe 。 <iframe src="" name= "table_main" width="700" height="850" marginheight="0" marginwidth="0" frameborder="0" scrolling="auto">你的浏览器不支持iframe,请使用IE浏览器!</iframe> 使用过ckeditor的高手请进…… 程序操作两三次后再操作就卡死! spring配置 参数注入,后台取值为NULL 页面跳转失败 有關在servlet中往數據庫寫數據的問題 紧急求救~~请大哥门帮帮忙 想学习java方面关于富客户端技术,从哪方面下手?请高手指教~ 哦,不好意思,还有一个有关发邮件的问题! 如何用tomcat4.1.x设置,internet域名访问 MongoDB分页查询返回数据类型的问题 高分!滑动门 延迟 SHA1 digest error for javax/mail/MessagingException.class
<html>
<head>
<title>Test </title> <script>
function test() {
var if0 = document.getElementById("if0");
if0.src = "http://www.baidu.com";
}</script>
</head>
<body>
<iframe id="if0" name="if0" src="http://www.163.com" ></iframe>
<a href="#" onclick="test()">测试</a>
</body>
</html>