有myProject.war
因此,为了在本地Tomcat上运行它,我应该使用以下URL:
http://localhost:8099/myProject/index.html
同样的问题是我的远程站点 - 我应该添加文件夹的名称,例如:
http://mySiteURL/myProject/index.html
web.xml内容:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
怎么做,我的网站索引页面只能通过URL访问:
http://mySiteURL/
谢谢