Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gwt 包括一些静态html文件?_Gwt - Fatal编程技术网

Gwt 包括一些静态html文件?

Gwt 包括一些静态html文件?,gwt,Gwt,在war文件中,我们可以将静态html文件放在哪里?例如,默认项目具有以下特性: war/projectname.html 我只想制作几个静态文件夹,其中包含如下静态页面: war/projectname.html war/signup/index.html war/about/index.html 这样我的用户就可以点击这些静态页面,如: www.myproject.com/signup www.myproject.com/about 在我们的项目树中,我应该把这样的文件夹放在哪里?我试

在war文件中,我们可以将静态html文件放在哪里?例如,默认项目具有以下特性:

war/projectname.html
我只想制作几个静态文件夹,其中包含如下静态页面:

war/projectname.html
war/signup/index.html
war/about/index.html
这样我的用户就可以点击这些静态页面,如:

www.myproject.com/signup
www.myproject.com/about
在我们的项目树中,我应该把这样的文件夹放在哪里?我试着把它们放在war/下,就在projectname.html旁边(如上所示),但它们似乎不在那里,我只是得到一个404错误


谢谢

正如Igor Klimer指出的那样,这很好,我启用了一个过滤器,这会弄乱路由。

是的,war/是放置静态文件的正确位置。我不明白为什么这不应该工作-你确定你的Java/HTTP服务器在你试图访问这些文件时工作吗?是的,我犯了一个愚蠢的错误,我有一个过滤器正在运行,这把事情搞砸了,它工作得很好,很抱歉,谢谢。