javascript - get value from input type hidden and access in items <c:foreach> -
i have input type hidden variable in jsp
<input type="hidden" name="propmap" id="propmap" value="">
the value of input type parameter set javascript ajax success $("#propmap").val(data);
in same jsp have code
<c:foreach items="" var="i"> <tr> <td>${i.key}</td> <td>${i.value}</td> </tr> </c:foreach>
the thing need access hidden propmap value in c:foreach items in jsp
will able this?
can use format looping data:
<c:foreach var="datalist" items="${datafrom}"> <span>${datalist.key}</span> <span>${datalist.value}</span> </c:foreach>
Comments
Post a Comment