【问题标题】:how to make an html page show in a frame in gwt如何在 gwt 的框架中显示 html 页面
【发布时间】:2011-08-13 23:02:40
【问题描述】:

我的项目是这样组织的:

我的主 html 页面 (shuttle_website_2.html) 中有一个 gwt 框架

war文件夹中有一个文件夹....path war/Assets/Animation/airport_shuttle_animation.html

所以我在 gwt-frame url 中输入了这个Assets/Animation/airport shuttle animation.html,它在托管模式下运行良好。

当我将它部署到 appengine 时,它​​会说:

 Error: Not Found

The requested URL /Assets/Animation/airport%20shuttle%20animation.html was not found on this server.

html页面部署到appengine后如何在frame中显示?

这里是 appengine-web.xml 文件:

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>reservationtransport1</application>
  <version>1</version>

  <!-- Configure serving/caching of GWT files -->
  <static-files>
    <include path="**" />

    <!-- The following line requires App Engine 1.3.2 SDK -->
    <include path="**.nocache.*" expiration="0s" />

    <include path="**.cache.*" expiration="365d" />
    <exclude path="**.gwt.rpc" />
  </static-files>

  <!-- Configure java.util.logging -->
  <system-properties>
    <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
  </system-properties>

</appengine-web-app>

【问题讨论】:

    标签: java google-app-engine gwt


    【解决方案1】:

    可能文件或文件夹已从 GAE 中排除。检查您的 appengine-web.xml(通常位于 war/lib 中)。

    appengine-web.xml 文档:http://code.google.com/appengine/docs/java/config/appconfig.html

    不太可能(因为它可能会在托管模式下显示),也许 web.xml 文件或您正在使用的框架没有提供它。

    [编辑] 或者,您似乎也在一处使用空格,而在另一处使用下划线。

    另一个调试提示:尝试仅从浏览器访问 html 文件,例如http://reservationtransport1.appspot.com/Assets/Animation/airport%20shuttle%20animation.html

    【讨论】:

    • 这里是 appengine-web.xml
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-14
    • 1970-01-01
    • 2016-04-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多