Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do 2 pages generated from servlets pass value?

 
Aman Rustogi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've a parent HTML page(generated form servlet) from which i'm invoking a child window (also genearted from another servlet) on pressing of a button and i need to both these pages to communicate with each other. The child window has a certain set of codes which when selected should populate a combo box in my parent html window.
How do i go abt doing this without re-loading my parent servlet or html page? plz help me
Thanking you in advance...
Aman Rustogi
 
vik nuckchady
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
This can be done using Javascript.
// Inside parent file
....
win=window.open('bla.html');
// bla.html contains java script code that will populate

/*-------- bla.html ------*/
function populateParent()
{
window.opener.document.myform ....
}
I think it is something like that. I any case this can be done in Javascript and does not require servlets.
Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic