웹프로그래밍/Javascript|JQuery|Jsp
[JSP] JSP에서 배열
Seras
2017. 8. 25. 11:15
반응형
[JSP] JSP에서 배열
FORM 태그를 활용하면 아래와 같이 배열을 뿌릴수있다.
<c:forEach var="objectRpt" items="${mrObject.objectRptList }" varStatus="i">
<td><form:input path="objectRptList[${i.index }].morUnit" title="단위" cssStyle="width:14px;"/></td>
</c:forEach>
FORM 태그를 사용하지 않아도..
<input type="checkbox" id="arrJobTpCd" name="arrJobTpCd" value="18" <c:if test='${list.jobTpCd8 eq "18" }'>
<input type="checkbox" id="arrJobTpCd" name="arrJobTpCd" value="18" <c:if test='${list.jobTpCd8 eq "19" }'>
<input type="checkbox" id="arrJobTpCd" name="arrJobTpCd" value="18" <c:if test='${list.jobTpCd8 eq "20" }'>
VO에서 arrJobTpCd[]로 받을수 있다...!
반응형