作者: 核桃博客 |
网址:
http://www.hetaoblog.com/gae-http-403-index-html-to-jsp/
本博客所有文章全部原创,欢迎转载,
但必须以超链接形式标明文章原始出处和作者信息及版权声明
昨天早上将核桃博客GAE站上线后,
http://hetaoblog.appspot.com/, 晚上回来继续开发,
其中有一步将war目录下的index.html改成index.jsp以后,
访问http://localhost:8888/
遇到了HTTP 403错误,
HTTP ERROR 403
Problem accessing /. Reason:
FORBIDDEN
Powered by Jetty://
其实问题很简单,web.xml里面的welcome-file-list里面只包含index.html,
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
所以访问http://localhost:8888/index.jsp是可以成功的,
很多时候建项目的时候原来默认的web.xml里面就包含了index.jsp,所以可能有些同学会觉得有点奇怪;
所以,将web.xml改成如下,将index.jsp加进去,记得重启服务器:)
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
分享到:
相关推荐
FreeMarker是专为实际的一代的 HTML 网页,特别是通过的servlet为基础的应用程序后的MVC (模型视图控制器)模式。背后的想法使用MVC模式的动态网页是你单独的设计者(作者的HTML )从程序员。每个人的作品他们所...
gae-java-mini-profiler.zip,google a p p engine java runtime的mini profiler(灵感来自于https://github.com/kamens/gae_mini_profiler上的python gae_mini_profiler和...
tomato-K26USB-12.09.0035-MIPSR1-8M.trxtomato-K26USB-12.09.0035-MIPSR1-8M.trx
camel-freemarker-1.6.4.jar, camel-freemarker-2.8.1.jar, ...freemarker-1.4.1.jar, ...freemarker-gae-2.3.18.jar, freemarker-gae-pre2.jar, freemarker-gae-pre3.jar, freemarker.jar, freemarker2_03.jar
maven-gae-plugin-0.9.6.jar
maven-gae-plugin-0.9.5.jar
maven-gae-plugin-0.9.4.jar
maven-gae-plugin-0.9.3.jar
maven-gae-plugin-0.9.2.jar
maven-gae-plugin-0.9.1.jar
maven-gae-plugin-0.9.0.jar
maven-gae-plugin-0.8.4.jar
maven-gae-plugin-0.8.3.jar
maven-gae-plugin-0.8.2.jar
maven-gae-plugin-0.8.1.jar
maven-gae-plugin-0.8.0.jar
maven-gae-plugin-0.7.3.jar
maven-gae-plugin-0.7.2.jar
maven-gae-plugin-0.7.1.jar
maven-gae-plugin-0.7.0.jar