日期:2014-05-17  浏览次数:20725 次

不是计算机的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/