I have an ajax call to a jsp page with certain data.
$.ajax({
type: "POST",
url: "jsp/order.jsp",
data: {
"dishId" : id,
"dishPrice" : price,
"dishName" : name
},
success: function(msg) {
alert(msg);
}
});
I want to read the data in the order.jsp using jstl. However I am not able to do that using the following statements.
<c:out value='${dishName}' />
<c:out value='${dishId}' />
I know it can be done using scriptlets but wanted to do it using jstl.