Topic: 如何获取当前页面的URL? |
Print this page |
1.如何获取当前页面的URL? | Copy to clipboard |
Posted by: sunnly Posted on: 2007-01-06 22:08 怎么能得当前url的参数? |
2.Re:如何获取当前页面的URL? [Re: sunnly] | Copy to clipboard |
Posted by: sunnly Posted on: 2007-01-08 14:34 用java怎么获得当前的URL及其参数 |
3.Re:如何获取当前页面的URL? [Re: sunnly] | Copy to clipboard |
Posted by: lovebeyondyang Posted on: 2007-01-10 01:17 就我所知道的给你说一下 在java.applet.Applet类之中有一个getDecoumentBase( );方法,该方法的返值就是你的当前目录的URL |
4.Re:如何获取当前页面的URL? [Re: sunnly] | Copy to clipboard |
Posted by: junsansi Posted on: 2007-01-10 11:34 如果知道参数名, String str = request.getParameter(参名); 如果要获得当前链接所有的参数: String str = request.getQueryString(); |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |