Accessing javascript variable in JSP block
843838Feb 24 2006 — edited Feb 24 2006I am using a 'window.showModalDialog' in my javascript and passing an object (myObject) to the new window through the following code :
function myfunction(num,pos,hasMultiple)
{
var myObject = new Object();
myObject.moduleIndex = num;
var vReturnValue = window.showModalDialog("secPage.jsp",myObject,"height=90,width=90,status=yes,toolbar=no,menubar=no,location=no");
}
I CAN access this object in the Javascript of the secPage.jsp but I need to use that object in the JSP block. The above JS function is triggered through a onClick() of an image , so cant insert it in the JSP block through the request/session.
Can anyone suggest me a way to access this JS object in the JSP block
of the second page ? Any other workarounds are welcome.
Thank You