posted 16 years ago
Remember that the Java code runs on the server before your page appears in the browser, while the Javascript code runs on the client after all the Java code is done -- so the answer is no. The only way for a JSP to directly assign a value to a Javascript variable is by embedding the value in the page.