GWT窗口重定向到另一页

GWT窗口重定向到另一页,gwt,Gwt,您好,我的Sencha gXt应用程序中有此代码,其目的是在用户单击登录按钮时进行更改,然后显示另一个页面,如下所示: String url = GWT.getHostPageBaseURL() + "MyApplicationFrame.html"; Window.Location.replace(url); 它正在重定向,但在MyApplicationFrame.html中显示相同的登录页面。我有另一门有框架的课。我想展示这个类的控制力 MyApplicationFrame.html 看起

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

String url = GWT.getHostPageBaseURL() + "MyApplicationFrame.html";
Window.Location.replace(url);
它正在重定向,但在MyApplicationFrame.html中显示相同的登录页面。我有另一门有框架的课。我想展示这个类的控制力

MyApplicationFrame.html
看起来您在MyApplicationFrame.html.MyApplicationFrame.html中遇到了问题。如上所述,myfirstgxt是您要重定向到的模块吗?如果是,则身份验证调用中存在问题-身份验证失败,用户仍然会看到登录页面。
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>