{"id":1101,"date":"2018-04-15T23:29:33","date_gmt":"2018-04-15T14:29:33","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=1101"},"modified":"2023-05-27T20:44:39","modified_gmt":"2023-05-27T11:44:39","slug":"%e3%80%90jsp%e3%80%91%e4%bb%96%e3%81%aejsp%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e3%82%a4%e3%83%b3%e3%82%af%e3%83%ab%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=1101","title":{"rendered":"\u3010JSP\u3011\u4ed6\u306eJSP\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u306b\u306f\uff1f"},"content":{"rendered":"<p>\u5171\u901a\u30d8\u30c3\u30c0\u7b49\u3092\u4f5c\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u4ed6\u306eJSP\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u5f62\u3092\u53d6\u308a\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u305d\u308c\u306b\u306f\u3001\u4e8c\u901a\u308a\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>JSP\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u306e\u3055\u305b\u65b9\u306e\u7a2e\u985e<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u65b9\u6cd5<\/th>\n<th>\u7279\u5fb4<\/th>\n<\/tr>\n<tr>\n<td>\u30a2\u30af\u30b7\u30e7\u30f3(jsp:include)\u306b\u3088\u308b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/td>\n<td>\u4ed6\u306eJSP\u306e\u5b9f\u884c\u7d50\u679c\u306eHTML\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3002\u52d5\u7684\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6(@include)\u306b\u3088\u308b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/td>\n<td>\u4ed6\u306eJSP\u3092\u305d\u306e\u307e\u307e\u3001\u53d6\u308a\u8fbc\u3080\u3002\u9759\u7684\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u00a0\u30a2\u30af\u30b7\u30e7\u30f3(jsp:include)\u306b\u3088\u308b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/h2>\n<p>\u4ed6\u306eJSP\u306e\u5b9f\u884c\u7d50\u679c\u306eHTML\u3092\u3001\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb<\/h3>\n<p><strong>index.jsp<\/strong><\/p>\n<pre class=\"lang:default decode:true\">&lt;%@page contentType=\"text\/html; charset=UTF-8\" %&gt;\r\n\r\nHTML&gt;\r\n&lt;HEAD&gt;\r\n&lt;TITLE&gt;ArrayList&lt;\/TITLE&gt;\r\n&lt;\/HEAD&gt;\r\n&lt;BODY&gt;\r\n\r\n&lt;jsp:include page=\"header.jsp\" \/&gt;\r\n\r\n\r\n\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30c6\u30b9\u30c8\r\n\r\n\r\n&lt;\/BODY&gt;\r\n&lt;\/HTML&gt;<\/pre>\n<p><strong>header.jsp<\/strong><\/p>\n<pre class=\"lang:default decode:true\">&lt;%@page contentType=\"text\/html; charset=UTF-8\" %&gt;\r\n\r\n&lt;h1&gt;\u30d8\u30c3\u30c0&lt;\/h1&gt;\r\n\r\n<\/pre>\n<h4>\u5b9f\u884c\u7d50\u679c<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1109\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30a4\u30f3\u30af\u30eb\u30fc\u30c9.png\" alt=\"\" width=\"231\" height=\"134\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30a4\u30f3\u30af\u30eb\u30fc\u30c9.png 231w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30a4\u30f3\u30af\u30eb\u30fc\u30c9-177x104.png 177w\" sizes=\"(max-width: 231px) 100vw, 231px\" \/><\/p>\n<h4>flush\u5c5e\u6027<\/h4>\n<pre class=\"lang:default decode:true\">&lt;jsp:include page=\"header.jsp\" flush=\"true\" \/&gt;<\/pre>\n<p>flush\u3092true\u306b\u3059\u308b\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u51fa\u529b\u3059\u308b\u524d\u306b\u30d0\u30c3\u30d5\u30a1\u3092\u30d5\u30e9\u30c3\u30b7\u30e5\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u51fa\u529b\u3067\u304d\u307e\u3059\u3002\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306ffalse\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6(@include)\u306b\u3088\u308b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/h2>\n<p>\u4ed6\u306eJSP\u306e\u8a18\u8ff0\u3001\u305d\u306e\u3082\u306e\u3092\u305d\u306e\u307e\u307e\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u5909\u63db\uff09\u524d\u306b\u8aad\u307f\u8fbc\u3080\u306e\u30671\u3064\u306eJSP\u30da\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u9759\u7684\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\uff09<\/p>\n<p>include\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u5834\u5408\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u5909\u63db\uff09\u524d\u3067\u306f\u306a\u304f\u3001\u5b9f\u884c\u6642\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002\u306a\u306e\u3067\u5225\u3005\u306ejsp\u6271\u3044\u306b\u306a\u308b\u306e\u3067\u8907\u6570\u306ejsp\u30da\u30fc\u30b8\u3068\u3044\u3046\u6271\u3044\u306b\u306a\u308a\u305d\u308c\u305e\u308c\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002\uff08\u52d5\u7684\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\uff09<\/p>\n<p>\u306a\u306e\u3067\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u3088\u308b\u6307\u5b9a\u306e\u5834\u5408\u306f1\u3064\u306ejsp\u306b\u306a\u308b\u306e\u3067\u53d6\u308a\u8fbc\u307e\u308c\u308b\u30da\u30fc\u30b8\u306e\u65b9\u306b\u306f\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u6307\u5b9a\u306a\u3069\u306f\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a18\u8ff0\u4f8b\u306f\u3001\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"bZP19xcaTc\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=1115\">\u3010JSP\u3011\u69cb\u6210\u8981\u7d20(\u30b3\u30a2\u8981\u7d20\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001\u30a2\u30af\u30b7\u30e7\u30f3)<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=1115&#038;embed=true#?secret=bZP19xcaTc\" data-secret=\"bZP19xcaTc\" width=\"500\" height=\"282\" title=\"&#8220;\u3010JSP\u3011\u69cb\u6210\u8981\u7d20(\u30b3\u30a2\u8981\u7d20\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001\u30a2\u30af\u30b7\u30e7\u30f3)&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>\u30a2\u30af\u30b7\u30e7\u30f3(jsp:include)\u306b\u6bd4\u3079\u3066\u306e\u7279\u5fb4<\/h3>\n<p>\u4ed6\u306eJSP\u3092\u305d\u306e\u307e\u307e\u53d6\u308a\u8fbc\u3080\u306e\u3067\u3001\u300cimport\u6587\u300d\u3092\u305d\u306e\u307e\u307e\u53d6\u308a\u8fbc\u3080\u3053\u3068\u3082\u53ef\u80fd\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u65b9\u306fjsp\u540c\u58eb\u3067\u5909\u6570\u306e\u7af6\u5408\u304c\u8d77\u3053\u3089\u306a\u304b\u3063\u305f\u308a\u3001\u53d6\u308a\u8fbc\u3080\u969b\u306b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u5143\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3069\u304c\u4e0d\u8981\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5171\u901a\u30d8\u30c3\u30c0\u7b49\u3092\u4f5c\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u4ed6\u306eJSP\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u5f62\u3092\u53d6\u308a\u307e\u3059\u3088\u306d\u3002 \u305d\u308c\u306b\u306f\u3001\u4e8c\u901a\u308a\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 JSP\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u306e\u3055\u305b\u65b9\u306e\u7a2e\u985e \u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u65b9\u6cd5 \u7279\u5fb4 \u30a2\u30af\u30b7\u30e7\u30f3(jsp:include [&hellip;]","protected":false},"author":1,"featured_media":1142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1101"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1101"}],"version-history":[{"count":13,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1101\/revisions"}],"predecessor-version":[{"id":20256,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1101\/revisions\/20256"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/1142"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1101"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}