posted 23 years ago
Here is the flow of things:
JSP Run -> client receives page -> JavaScript Runs
JavaScript can never talk directly to JSP, since in a Page's life, JSP is "done" by the time JavaScript starts executing.
What you want to do may be possible, but not the way you are thinking about doing it. You could load the page again (controlled by JavaScript) passing the value of the JavaScript variable as a parameter on the request. For example "mypage.jsp?field=value".
We might be able to provide more help if we knew more (from and end user perspective) what you were trying to accomplish.
-Pete
[ March 27, 2003: Message edited by: Peter Daly ]