sタグのiteratorは下記のようなコードにも適用できますか?
もし出来るのでしたら、どのようにするのか教えてくれるとすごく助かります!
jsp
1コード 2<ul> 3 <li> 4<figure class="snip1212"> 5 <img src="img/img01.jpg" alt="sample74" width="400" height="300"> 6 <figcaption> 7 <h2>Jason Response</h2> 8 <p>Just makes people try to do everything at once.</p> 9 </figcaption> 10 <a href="#0" data-toggle="modal" data-target="#myModal"></a> 11</figure> 12 </li> 13 <li> 14<figure class="snip1212"> 15 <img src="img/img01.jpg" alt="sample74" width="400" height="300"> 16 <figcaption> 17 <h2>Jason Response</h2> 18 <p>Just makes people try to do everything at once.</p> 19 </figcaption> 20 <a href="#0" data-toggle="modal" data-target="#myModal"></a> 21</figure> 22 </li> 23</ul>
こうやってみても画面上でiteratorに囲まれた部分が消えてしまうのです
jsp
1コード 2<ul> 3<s:iterator value="ticketList"> 4 <li> 5<figure class="snip1212"> 6 <img src=<s:property value="imgPath"/> alt="sample74" width="400" height="300"> 7 <figcaption> 8 <h2><s:property value="goods"/></h2> 9 <p><s:property value="comment"/></p> 10 </figcaption> 11 <a href="#0" data-toggle="modal" data-target=<s:property value="modal"/>></a> 12</figure> 13 </li> 14</s:iterator> 15</ul>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。