亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - How to get the address bar in velocity?
伊謝爾倫
伊謝爾倫 2017-06-30 09:56:04
0
2
1239

Like the title~~~

I have tried several methods on the Internet but all reported null pointers

code show as below

 <tool>
    <key>link</key>
    <scope>request</scope>
    <class>org.apache.velocity.tools.view.tools.LinkTool</class>
</tool>
伊謝爾倫
伊謝爾倫

小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。

reply all(2)
洪濤

The address bar can only be obtained in JavaScript scripts, using window.location. Reference documentation:
https://developer.mozilla.org...

僅有的幸福

As @fabricated belief said, you can use window.location to get the address bar (client-side method) on the web page.

To obtain the address bar from the server side, use request.getRequestURL(), and the content after ? needs to be obtained from request.getQueryString(), and the content after # cannot be obtained.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template