Hey Michael,
Just to clarify, I was talking JavaScript and not Java.
If you want to write the values to JavaScript variables, just add the script to your html, something like...
Code:
<script language="JavaScript">
var myVar="<%=Session("mySessionVar")%>";
</script>
This will write the value into the script block before the page is sent to the browser.
Your idea about a hidden form would work, depending on your target audience, you could also consider M$ XmlHttp or Mozilla XMLHttpRequest objects, which allow a remote request direct from a script.
Cheers,
Chris
[/code]