2013年11月1日星期五

c: foreach tag output list of questions

c: foreach tag output list of issues
now have a List > list
Now I want to loop out separately inside each group List list results
$ {} inside what to write it
also get a list of which can only be used after the list [0], list [1] how to control the output of the jsp pages in the collection subscript it
background using double loop iteration output can be out front , then I do not know how the value of the
------ Solution ------------ --------------------------------
double foreach
inside layer inside the string list should be able to visit , I had the inside layer list which put int, the JSP page directly . ' $' visit , to access String, should also have a method, you check. Inside you back in the group , you do not Niaoa
------ Solution ------------------------------ --------------

<c:foreach item="${list}" var="ls">
  <c:foreach item="${ls}" var="l">
     ${l}
  </c:foreach>
</c:foreach>


It's that simple , remember to give points
------ Solution ----------------------------- ---------------
123456 $ {l}

sets click on it
------ For reference only ----------------------------- ----------

------ For reference only ------------------------------------ ---

ibid
------ For reference only --------------------------- ------------

+1 quite place. Code above.
------ For reference only -------------------------------------- -


$ {info [0]}
$ {info [1]}
$ {info [2]}
$ {info [3]}

没有评论:

发表评论