我如何获取页面重定向的URL? [英] How can I get the URL that the page is redirected from?
本文介绍了我如何获取页面重定向的URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个登录servlet,它会重定向到我的GWT页面。
I have a login servlet and it will redirect to my GWT page.
我想确保页面从该登录servlet重定向。如何确定?
I want to make sure the page is redirected from that login servlet. How can I make sure that?
推荐答案
您可以制作 JSNI方法如下:
you can make a JSNI Method like this:
public static native String getReferrer() /*-{
return $doc.referrer;
}-*/;
这篇关于我如何获取页面重定向的URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文