GWT窗口重定向到另一页

时间:2015-02-13 07:01:08

标签: gwt

您好我的Sencha gXt应用程序中有此代码,其目的是在用户单击登录按钮时更改,然后显示另一页,如下所示:

String url = GWT.getHostPageBaseURL() + "MyApplicationFrame.html";
Window.Location.replace(url);

重定向但在MyApplicationFrame.html中显示相同的登录页面。我有另一个带框架的课程。我想展示那个班级的控制权。

MyApplicationFrame.html

enter code here
<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="MyFirstGXT.css">
    <link type="text/css" rel="stylesheet" href="gxt/css/gxt-all.css">
    <title>Web Application Starter Project</title>
    <script type="text/javascript" language="javascript" src="myfirstgxt/myfirstgxt.nocache.js"></script>
  </head>

  <body>

    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
    <noscript>
      <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
        Your web browser must have JavaScript enabled
        in order for this application to display correctly.
      </div>
    </noscript>
</body>
</html>

0 个答案:

没有答案