1
var xData = ${_attrValues};

So I tried using "${}" in external js file but it throws this error ->

enter image description here

Yash P Shah
  • 782
  • 11
  • 15

1 Answers1

-2

You can not access it via an External Javascript file,because an external Javascript file do not know the context,you must need to import it to a JSP or Velocity file,then you need use sessionScope to retrieve the session variable,try it like below:

var xData = "${sessionScope._attrValues}";
lucumt
  • 7,439
  • 3
  • 18
  • 35