반응형
[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[]로 받을수 있다...!
반응형
'웹프로그래밍 > Javascript|JQuery|Jsp' 카테고리의 다른 글
브라우저 사이즈에 따라 탑메뉴 조정 (2) | 2017.09.19 |
---|---|
변수 선언할때 var, $의 차이 (0) | 2017.09.18 |
div scroll 생기게 하기 (0) | 2017.08.10 |
[JSP] 콤마(,)로 구분된 데이터 JSP에 보여주기 (0) | 2017.07.17 |
[JSP] 글자수 초과, 넘어갈때 (0) | 2017.07.17 |