A really simple question: from GWT, I want to redirect a user from my GWT page to a specific URL. What is the best way to do this?
You can create your own method:
public static native void setWindowHref(String url)/*-{ $wnd.location.href = url; }-*/;
This would set the current browser url you specify.
Alternative with GWT API (thanks, Hilbrand):
Window.Location.assign(url);
Try the following:
public static native void leavePage() /*-{ $wnd.location.href = "http://www.certainurl.com/"; }-*/;
Source: https://habr.com/ru/post/1738629/More articles:remember the selected text on the html page (add annotation to the html page) - javascriptHow to safely communicate with a database using a java applet - javaHow to solve this nullPointer Exception error in jasper report? - jasper-reportsIs it possible to vertically align the listitem marker in a streaming document? - wpfИспользование Biztalk SAP Adapter без Biztalk Server для подключения .NET и SAP - .net57% image reduction and centering within the css structure - cssHibernate Обновление существующего объекта с новым объектом - hibernateJava generation parameters with a common parameter base - javaУправляемый и неуправляемый код в .NET. - .netHow to reduce the delay of data sent via REST api - pythonAll Articles