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.
タイルとJSPの使用。JSPで、${param.ID}特定のページを取得するために使用します。
${param.ID}
sub-category.jsp
<jsp:include page="categories/sub-category/${param.ID}.jsp" flush="true" />
/sub-category/test-page.jspIDです
/sub-category/test-page.jsp
test-page.jspに挿入できる独自のページタイトルを作成する方法を見つける必要がありますtest-page.jsp。
test-page.jsp
ロードされたページに基づいてWebページのタイトルを変更したいとします(例:test-page.jsp)。
それが本当なら、test-page.jspであなたは書くことができます
<script> document.title = "My Title"; </script>
またはdocument.onload()内に書き込みます
jquery.ready関数が最適です