jsp中如何获得当前页面的链接呀??

rf_wu 2003-03-28 09:19:28
help me!
thanks
...全文
86 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rf_wu 2003-03-28
  • 打赏
  • 举报
回复
request.getRealPath好像不行

不能用javaScript
rf_wu 2003-03-28
  • 打赏
  • 举报
回复
就是当前页面的url

地址栏里的东东
peter207 2003-03-28
  • 打赏
  • 举报
回复
用javascript吧
看看这个
<script language=javascript>
alert(window.location);

</script>
想办法把值传到jsp里面
yzxasd 2003-03-28
  • 打赏
  • 举报
回复
javascript:
window.location()
pqds 2003-03-28
  • 打赏
  • 举报
回复
if you want to the get the all current link of this page
!you can set the whole html to str
and search from the a href from str
pqds 2003-03-28
  • 打赏
  • 举报
回复
what's mean?

if want to the crruent path is: request.getRealPath;

81,095

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧