2

「/pages/index.xhtml」ページがあります。問題は、アプリケーションを実行すると、このインデックス ページ名がアドレス バーに表示されないことです。

のみを示しますhttp://localhost:8080/myApplication/。私が見たいのはhttp://localhost:8080/myApplication/pages/index.xhtml

解決策はありますか?

これがweb.xmlのウェルカムファイルです

<welcome-file-list>
    <welcome-file>pages/index.xhtml</welcome-file>
</welcome-file-list>
4

1 に答える 1