Passing an on a per user basis
I want to pass an argument via jnlp to my application. I've got a jsp page which generates a dynamic jnlp file. The argument is the user key, which the server knows (because the person has logged into a web system).
I've got the argument section filled in thus:
<%= username %>
When the jsp page is hit, the jnlp is created correctly, and javaws starts up, but the argument does not come down. Debugging finds that the jsp page is being hit roughly 8 times, and only the first one has the argument. Further debugging finds that the arguments that are actually passed to the program are from the very last hit of the jsp.
I find that the first has the same http session as the logged in user, but all the other calls have a second session.
What's the right way to get the argument passed down per user ?