A section of my codes goes below:
String hsCode = request.getAttribute("hsCode");
var JShsCode = <%=hsCode%>;
In my console, the hsCode is printed out as 0701, but in my alert box when I load the JSP, JShsCode becomes 449. With each different value of hsCode, the JShsCode value changes .e.g. hsCode 077 will alert me JShsCode 63.
Any ideas on this?