开发者

Ignore folder name in webapps for application URL

There is myProject.war

So, in order to run it on local Tomcat I should use following URL:

http://localhost:8099/myProject/index.html

The same problem is for my remote site- I should add name of folder,such as:

http://mySiteURL/myProject/index.html

web.xml content:

<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    &开发者_如何学Clt;url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
    <welcome-file>index.xhtml</welcome-file>
</welcome-file-list>

how to do,that my site index page was accessible just by URL:

http://mySiteURL/

thank you


You have to deploy as ROOT.war


This is one way how i would do it for a Struts 2 application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜