2013年9月28日星期六

Help on how to use JSTL FOR loop

As the following code :
int num = 10;
for (int i = 0; i println (i);
}
how to use JSTL implementation ~ ~ Thank you prawn
------ Solution -------------------------- ------------------

<c:forEach var="item" varStatus="status" begin="1" end="10">
  ${status.index}
</c:forEach>

------ Solution ---------------- ----------------------------



$ {id.value} / / var here to write the above identification , id. / / arguments behind it , the entity ( the entity class entity )

------ Solution ----------------------------- ---------------
<%
int num = 10;
for (int i = 0; i %>
out.println (num);
<%

}
%>
This can
------ For reference only ------------------------------- --------
on the second floor of Positive Solutions
------ For reference only ------------------------ ---------------
upstairs positive solution . . . C tag with the EL with easy
------ For reference only ------------------------------- --------
  This reply was moderator deleted at 2012-04-05 10:40:16

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


easiest is jstl
------ For reference only ----------------------------- ----------
2 Floor positive solution
------ For reference only ---------------------- -----------------

Thank you, brothers , EL fail to realize the FOR loop , only this realization ~ ~
------ For reference only ---------------------------------------
thank you
------ For reference only --------------------------------------- < br> $ {i}

没有评论:

发表评论