|
|
Re: How to restart a rap-session? [message #128142 is a reply to message #128020] |
Thu, 16 April 2009 06:31  |
Eclipse User |
|
|
|
thx a lot , works fine.
I've modified your solution to:
------------------------------------------------------------ ---------------------
protected void restart() {
String url = URLHelper.getURLString(false);
Shell shell = new Shell(Display.getCurrent(), SWT.NONE);
Browser browser = new Browser(shell, SWT.NONE);
String page = "<html><head><title></title><meta http-equiv=\"refresh\"
content=\"0;url=" + url + "\";>"
+ "<script type=\"text/javascript\">" + "if (top != self) top.location
= self.location;"
+ "</script></head><body></body></html>";
browser.setText(page);
shell.setMaximized(true);
shell.open();
}
------------------------------------------------------------ ---------------------
So the way it works how it should work by reaching a Session-timeout, too.
I'm on the way to get so solution for that, too. I will post it later.
|
|
|
Powered by
FUDForum. Page generated in 0.04703 seconds