Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <option value="${custList.id}" ><c:out value="${custList.name}"></c:out></option>
- <c:when test="${jspMasterObj.datatypeMaster.id == 6}"> //id=6 means drop-down datatype
- <c:set var="dropdownList" value="${jspMasterObj.listForDropdown}"></c:set> //list containing drop-down items
- <c:set var="dropdownKey" value="${jspMasterObj.dropdownKey}"></c:set> //id for the corresponding item in the list
- <c:set var="dropdownVal" value="${jspMasterObj.dropdownValue}"></c:set> //name for the corresponding item in the list
- <select class="form-control selectpicker" id="testDrop" name="testDrop">
- <option value="0" >--Select Value-- </option>
- <c:forEach var="dropdownListVar" items="${requestScope[dropdownList]}">
- <option value="${dropdownListVar}.${dropdownKey}" ><c:out value="${dropdownListVar}.${dropdownValue}"></c:out></option>
- </c:forEach>
- </select>
- </c:when>
Add Comment
Please, Sign In to add comment