permaculture playing cards*
The moose likes Servlets and the fly likes How do 2 pages generated from servlets pass value? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How do 2 pages generated from servlets pass value?" Watch "How do 2 pages generated from servlets pass value?" New topic
Author

How do 2 pages generated from servlets pass value?

Aman Rustogi
Greenhorn

Joined: May 11, 2001
Posts: 22
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do 2 pages generated from servlets pass value?
 
Similar Threads
could't access DIV TAG attribute
How to throw open a html from a servlet which is called by another servlet ?
Popup window not working
How can 2 html pages communicate?
issue with session on restart of server