This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I don't think there is direct way to assign the variable as java script executes at client side and jsp code(as a servlet) at server side. However u can assign the java script variable to a hidden form field and pass to server where the jsp can get it using request.getParameter().