Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Redirect Page(Redirect Page)
Redirect Page [message #1743667] Sun, 18 September 2016 12:24 Go to next message
Eclipse UserFriend
Hi all,

In our standalone RAP application, when user opens it we show our login page, upon successful login we want to direct him to our main application within the same session without opening new browser tab/window, how to do this redirection/forwarding using RAP API ?

Any help would be greatly appreciated.

Thanks & Regards,
Stya
Re: Redirect Page [message #1743703 is a reply to message #1743667] Mon, 19 September 2016 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
that's only possible with RAP internals. Try this:

ContextProvider.getProtocolWriter().appendHead("redirect", url);

HTH,
Ivan
Re: Redirect Page [message #1743716 is a reply to message #1743703] Mon, 19 September 2016 04:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ivan,

Thank you for your suggestion.

I'm also able to achieve the same using:

final JavaScriptExecutor executor = RWT.getClient().getService(JavaScriptExecutor.class);
executor.execute("parent.window.location.href=\"" + redirectPath + "\";");


Which 1 is better ?

Regards,
Setya
Re: Redirect Page [message #1743722 is a reply to message #1743716] Mon, 19 September 2016 05:13 Go to previous message
Eclipse UserFriend
Hi, technically it's the same.
Regards, Ivan
Previous Topic:RCPTT(RAP test framework) test movie
Next Topic:Javascript error on Hyperlink Widget
Goto Forum:
  


Current Time: Thu Jul 10 02:15:25 EDT 2025

Powered by FUDForum. Page generated in 0.09852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top