Pass hidden variable to new window
Hi,
I have a value in a JSP hidden variable. I need to pass this as a parameter to a new window. The code is something like this -
window.open('newFile.jsp?accountId=document.myForm.hiddenField.value','myWindow', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=750,height=650');
I am passing - document.myForm.hiddenField.value as a parameter. If I put an alert and view the contents it shows up correctly as '123' . But when my java class does req.getParameter("accountId"), it shows up as a string - 'document.myForm.hiddenField.value'.
What am I doing wrong?
Thanks in advance.

