configure tomcat to accept embedded java in .JS file
Joined: Nov 09, 2011
In my .jsp file I included a JS file 'abc.js'. This .js file has embedded java code to retrieve data value from a java class. For some reason Tomcat does not like the embedded java code. I was told that I have to change the Tomcat configuraiton to allow pasrsing Java inside the JSP .js file. Can someone tell me how do I configure Tomcat to do that?
document.getElementById("update_field" ).style.display = "<%=student.getUpdateField()%>";