I have a div value for I am getting dynamically using js. jSP:-
<div id="lp" ></div>
<c:forEach var="map" items="${obj.dataEmployee}" varStatus="status">
<c:if test="${map.key==10001}">
JS CODE:-
var drop = {
empid1 :empid }
$.ajax({
type: "GET",
url: "new",
data: drop,
success: function (data) {
// do something.
//out.print("done");
$('#lp').html(data);
//alert( data)
},
I want to access this value using jstl as I Need it in existing JSTL code in place of 10001.Have tried a lot of approaches but to no avail.What should I do?