有一个框架结构的页面,如何获得点击后的URL地址。 request.getContextPath()可以吗?给点分可以吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你这样最好用javascript,放在客户端,还节省服务器的资源,效率高。javascript就用location.href 1。同二楼,2。struts中好像存在标签,可以显示当前的url。3。jsp中好像也存在标签,用于表示当前的url。建议查找一下 用javascript试试看<SCRIPT>var add = top.location;var a1=a1的框架名.location;add = add.toString();a1=a1.toString();document.write (add.substring(add.indexOf("?")+1,add.length));document.write (a1.substring(a1.indexOf("?")+1,a1.length));</SCRIPT> "bottom中有一个菜单""想在bottom中获得A1的URL地址" --> top.centerFrameName.window.location.href parent.frames("centerFrameName").document.URL struts1标签,在JS中获取控件,实现文本框不能为空 做一个项目,一个表里会有7000万条数据,会何解决检索的问题,oracle数据库 <jsp:include> struts1.2文件上传的文件名问题 jsp对字符串操作 请问:forward 和redirect的区别,回答得越详细越好,谢谢 关于自定义标签的问题 jsp电子版学习书籍 【棘手】:三级关联菜单(jsp、js、sqlserver)??? jsp使用标准库新手求教 在Servlet中下载文件时,怎么使得下载文件名字相同! 最低级的Servlet的问题?
javascript就用location.href
<SCRIPT>
var add = top.location;
var a1=a1的框架名.location;
add = add.toString();
a1=a1.toString();
document.write (add.substring(add.indexOf("?")+1,add.length));
document.write (a1.substring(a1.indexOf("?")+1,a1.length));
</SCRIPT>