The simple answer is that you can't. The JSP runs on the server to create the HTML page, and then the Javascript runs on the client. There can be no direct passing of the data from one to the other. (See
this article for more information.)
But what you
can do is to use the JSP to construct an equivalent Javascript construct on the page that the Javascript code can reference.
[ January 12, 2007: Message edited by: Bear Bibeault ]