Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

window.open() and session variable  RSS feed

 
kumar mahesh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

MY JSP page has a link and clicking on it opens a pop-up window using window.open(). The contents in the pop-up window is generated dynamically based on the values in arraylist. This arraylist is in turn stored in session. The issue here is, the call to window.open() takes a new session and all the session variables are lost.

Can somebody help me out in opening the pop-up in the same session as the main window. Any help would be highly appreciated.

Thanks in advance.

Regards,
Srini
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kumar mahesh wrote: The issue here is, the call to window.open() takes a new session and all the session variables are lost.

Are you sure? It shouldn't be giving you a new session. What browser are you using? Can you post the window.open line of code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!