首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

不是计算机的bug原因,是代码的异常?还是别的原因,高手帮忙看看

2012-01-09 
不是计算机的bug原因,是代码的错误?还是别的原因,高手帮忙看看。网址http://localhost:8080/webStore/打开

不是计算机的bug原因,是代码的错误?还是别的原因,高手帮忙看看。
网址http://localhost:8080/webStore/打开后出现的是正确的结果,但是网址http://localhost:8080/webStore/index.jsp打开后竟然出现了错误的结果。页面都打开了,只是后者的页面与结果不符。高手看看。

[解决办法]
http://localhost:8080/webStore/ 实际访问的可能不是 http://localhost:8080/webStore/index.jsp有可能是http://localhost:8080/webStore/index.html或者其他文件,这个要看你web.xml里面欢迎文件怎么写的了,问题原因估计就是这样
[解决办法]
你把欢迎文件改下,或者自己找找
<display-name>jstl1.000</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
这里面有哪个文件,没有问题的页面肯定是上面的除了index.jsp的一个,index.html index.htm啥的

你那个index.jsp有问题这是肯定的,即便你找到了另外显示的文件,又有什么用呢

还不如找找index.jsp到底什么问题

探讨

url没有变,还是http://localhost:8080/webStore/

热点排行