what he means is that the JSP is already compiled and sent by the time
it reaches the client and the javascript is run.
So, you have to send it back to your server running the JSP so it can
process it.
There are two ways of sending back data post and get, in a nutshell
what that really means is either it's tacked onto the end of a URL like
http://www.thephred.com?matt=wonderful
or it's hidden from the end user. (The example is a get)
how do you code for it?
well if you have no form just change your document location like:
document.location.href = "http://www.thephred.com?" + key + "=" +
value;
if you have a form and the action is post put in a hidden input field
<input type="hidden" name="matt" value="wonderful" />
you can then change that value with javascript and submit the form.
hope that makes sense...
;-)