Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Accessing javascript variable in JSP block

843838Feb 24 2006 — edited Feb 24 2006
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2006
Added on Feb 24 2006
3 comments
390 views