{"id":973,"date":"2024-04-16T03:59:54","date_gmt":"2024-04-15T18:59:54","guid":{"rendered":"http:\/\/inwelly.com\/?p=973"},"modified":"2024-04-22T05:00:47","modified_gmt":"2024-04-21T20:00:47","slug":"java-%eb%8f%99%ec%a0%81%eb%b3%80%ec%88%98-%ec%a7%80%ec%a0%95%ed%95%98%ec%97%ac-jstl-%ec%97%90%ec%84%9c-%ed%91%9c%ec%8b%9c","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=973","title":{"rendered":"JAVA \ub3d9\uc801\ubcc0\uc218 \uc9c0\uc815\ud558\uc5ec JSTL \uc5d0\uc11c \ud45c\uc2dc"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>JAVA \ud30c\uc77c\uc5d0\uc11c<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&nbsp;List&lt;item_list_vo&gt; item_list = null; \/\/ \uba54\uc778 \ubcc0\uc218 \uc9c0\uc815<\/p>\n\n\n\n<p>&nbsp; &nbsp; List&lt;item_tag_list_vo&gt; item_tag_list = null; \/\/ \uc11c\ube0c \ubcc0\uc218 \uc9c0\uc815<\/p>\n\n\n\n<p>&nbsp; &nbsp; item_list = EXTENDMETASERVICE.GetMtItemList(); \/\/ xml \uba54\uc778 \ucffc\ub9ac \uc2e4\ud589<\/p>\n\n\n\n<p>&nbsp; &nbsp; model.addAttribute(&#8220;list&#8221;, item_list);<\/p>\n\n\n\n<p>&nbsp; &nbsp; for(int i=0;i&lt;item_list.size();i++){<\/p>\n\n\n\n<p>&nbsp; Map&lt;String, Object&gt; resultMap = new HashMap&lt;String, Object&gt; ();<\/p>\n\n\n\n<p>&nbsp; String taggroupid = item_list.get(i).getTAG_GROUP_ID();<\/p>\n\n\n\n<p>&nbsp; resultMap.put(&#8220;TAG_GROUP_ID&#8221;, taggroupid );<\/p>\n\n\n\n<p>&nbsp; item_tag_list = EXTENDMETASERVICE.GetMtItemTagList(resultMap); \/\/ xml \uc11c\ube0c \ucffc\ub9ac \uc2e4\ud589<\/p>\n\n\n\n<p>&nbsp; String id = &#8220;&#8221;;<\/p>\n\n\n\n<p>&nbsp; for(int j=0;j&lt;item_tag_list.size();j++){<\/p>\n\n\n\n<p>&nbsp; id = item_tag_list.get(j).getTAG_GROUP_ID();<\/p>\n\n\n\n<p>&nbsp; model.addAttribute(&#8220;list_&#8221;+id, item_tag_list);<\/p>\n\n\n\n<p>&nbsp; }<\/p>\n\n\n\n<p>&nbsp; &nbsp; }&nbsp;<\/p>\n\n\n\n<p>modeled_view.setViewName(&#8220;\/item_list&#8221;);<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>item_list.jsp \ud30c\uc77c\uc5d0\uc11c \ubc1b\uc544 \ucc98\ub9ac \ud558\uae30 <\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&lt;c:forEach var=&#8221;list_view&#8221; items=&#8221;${list}&#8221; varStatus=&#8221;sta&#8221;&gt;<\/p>\n\n\n\n<p>&lt;tr&gt;<\/p>\n\n\n\n<p>&lt;td&gt;${list_view.TAG_GROUP_ID }&lt;\/td&gt;<\/p>\n\n\n\n<p>&lt;td&gt;${list_view.TAG_GROUP_NAME }&lt;\/td&gt;<\/p>\n\n\n\n<p>&lt;td&gt;<\/p>\n\n\n\n<p>&lt;c:set var=&#8221;fname&#8221; value=&#8221;list_${list_view.TAG_GROUP_ID }&#8221; \/&gt;<\/p>\n\n\n\n<p>&lt;c:forEach var=&#8221;list_view_tag&#8221; items=&#8221;${requestScope[fname]}&#8221; varStatus=&#8221;sta_tag&#8221; &gt;<\/p>\n\n\n\n<p>${list_view_tag.TAG_NAME }<\/p>\n\n\n\n<p>&lt;c:if test=&#8221;${!sta_tag.last}&#8221;&gt;,&lt;\/c:if&gt;<\/p>\n\n\n\n<p>&lt;\/c:forEach&gt;<\/p>\n\n\n\n<p>&lt;\/td&gt;<\/p>\n\n\n\n<p>&lt;td&gt;&lt;\/td&gt;<\/p>\n\n\n\n<p>&lt;\/tr&gt;<\/p>\n\n\n\n<p>&lt;\/c:forEach&gt;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;List&lt;item_list_vo&gt; item_list = null; \/\/ \uba54\uc778 \ubcc0\uc218 \uc9c0\uc815 &nbsp; &nbsp; List&lt;item_tag_list_vo&gt; item_tag_list = null; \/\/ \uc11c\ube0c \ubcc0\uc218 \uc9c0\uc815 &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":974,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions\/974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/media\/1280"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}