I'm trying to use JavaScript to do some interesting things. However, I'd like to do *something* with what is generated.

For example, if I have a simple JavaScript function that I specify to return a string e.g. "hello", how can I get that return value and put it in a JSP variable.

If this is not possible then so be it, but I'm sure it can be done.

Thanks in advance

HD