I have input type hidden variable in jsp
<input type="hidden" name="propMap" id="propMap" value="">
The value of this input type parameter I will set from javascript Ajax success $("#propMap").val(data);
in the same jsp I have the code
<c:forEach items="" var="i">
<tr>
<td>${i.key}</td>
<td>${i.value}</td>
</tr>
</c:forEach>
The thing is I need to access the hidden propMap value in c:foreach items in jsp
Will I be able to do this?
Can you use this format for looping the data:
<c:forEach var="dataList" items="${dataFrom}">
<span>${dataList.key}</span>
<span>${dataList.value}</span>
</c:forEach>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.