Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Test.war ファイルを Openshift にデプロイし、アプリケーション test-sliwa.rhcloud.com/Test run OK を実行しました。ROOT.file アプリケーションをデプロイすると、test-sliwa.rhcloud.com が正しく実行されません。最初のページは問題ありませんが、他のページにリンクしようとすると 404 エラーが発生します。
問題は、宣言されたリンクのソース コードにありました。次のようにドメイン相対 URL を宣言することをお勧めします。
<a href="<%= response.encodeUrl(request.getContextPath() + "/Controller?action=login") %>">
それ以外の:
<a href="Test/Controller?action=login")">}
index.jsp ファイル内。