Remove URL parameters in GWT

China☆狼群 提交于 2019-12-24 06:58:11

问题


My landing page (HTML) communicates with a GWT app via URL with one parameter login, so depending on the button you press on the landing page it will redirect to http://myapp.appspot.com?login=1 (or 2 or 3).

In the GWT app I process that parameter but I need to remove it from URL without reloading the webpage. Is there a way to do this? If not, can I pass this parameter in a different way to my GWT app?

Thanks


回答1:


I think that you cannot change the parameter without reloading. But your GWT app can read the parameter using WindowLocation.getParameter and do different things depending on it.



来源:https://stackoverflow.com/questions/20036194/remove-url-parameters-in-gwt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!