1
我使用的是JSF 2.0.5,Tomcat 7.0.12和漂亮的面板。JSF中的歡迎頁面使用漂亮
我的web.xml文件:
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
我的漂亮文件配置:
<url-mapping>
<pattern>/</pattern>
<view-id>/jsp/index.jsf</view-id>
</url-mapping>
我的index.jsp文件是空的。
我的問題是,當我打到他http://www.foo.com/最終重定向到 http://www.foo.com/jsp/index.jsf和漂亮的,因爲我們重定向到再次 http://www.foo.com/。
有人可以解釋爲什麼他打jsp/index.jsf?