To start off, I've passed several string variables to a JSP page by appending them to the url as shown:
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
var pair = vars[i].split("=");
if (pair == variable)
...where variable = "Var1", "Var2", etc.
As usual, any comments are greatly appreciated.