File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do 2 pages generated from servlets pass value?
 
Similar Threads
issue with session on restart of server
How to throw open a html from a servlet which is called by another servlet ?
could't access DIV TAG attribute
How can 2 html pages communicate?
Popup window not working