File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass values from child page to parent page ?

 
Durga Kannan
Greenhorn
Posts: 19
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to Javascript,servlets. i need to pass some selected values from child to parent page. In main pain am having a text box. In child page, am doing some selections and those values should pass to parent page when submit button in the child page is clicked. How should i do this?

Whether this can be achieved through javascript function call? Please suggest me some ways to achieve this.

Many thanks in advance.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: google for window.opener
 
Durga Kannan
Greenhorn
Posts: 19
Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Seetharaman Venkatasamy : Thanks for your kind reply.

The thing is i managed to get the text in child page & display it in the parent page. But the thing i am trying is ,first am opening a parent page,from that iam checking a check box,so pop up window is openig.After getting input there in pop,i want to display the text in the original parent page whihc is alreay opened.
But here am getting the text displaying in the new parent page,rather in already opened page.

Please suggest me how to do this.

Any suggestions would be highly appreciated!!

//Code for my Parent.jsp




//Code for my Chile.jsp




Apologies for my long snippet. Please suggest me how to proceed this.

Thanks a ton in advance!!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic