[Solved] store value of my Java function return String In JavaScript variable [closed]
The storing of data from a JSP scriptlet should be pretty straight forward just like you have it. var id=<%=ctx.getAttribute(“id”)%> Although I would recommend you to be careful with the returning data, if it isn’t a number for sure, then you must put it between quotes just to be sure the JS doesn’t break. For … Read more