How can I get the value of my bean to display from my javascript file?
My bean - dBean.strIssueDate
In the $(document).ready(function() of my jsp, I set the following:
$('#content').data("strIssueDate", "<c:out value="${dBean.strIssueDate}"/>");
My problem is that the date is updated (and it's correctly updated in the database), but I would like to call the value from the javascript file.
The update begins with a checkbox on another jsp page, which updates the data value via a java file, and then triggers the function in the javascript file, which is where my alert is called.
My (incorrect) code in the javascript file (which is not between tags, but just a file consisting of only js:
alert("${dBean.strIssueDate}");
which shows on the alert as ${dBean.strIssueDate}
I've tried removing the double quotes, substituting for single quotes, swapping the $ for a #, but nothing seems to work.