How do 2 pages generated from servlets pass value?
Aman Rustogi
Greenhorn
Joined: May 11, 2001
Posts: 22
posted
0
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
Joined: Apr 25, 2001
Posts: 25
posted
0
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
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How do 2 pages generated from servlets pass value?