srinivas chary wrote:var jsArray = <%=lineArray%>;
Of course that doesn't work. All that is going to do is to spit out the .toString() result of the array into the HTML stream. Not a useful thinkg to do. Look at the HTML being sent to the browser. Is it what you expected?
Remember that a JSP is just a template that runs on the server in order to create an HTML page to be sent to the browser. Please read
this article to understand how JSP operates.
JavaScript and Java cannot interact. They run on completely different machines at completely different times. Rather, you use JSP to create the JavaScript code that recreates the data in JavaScript syntax.