my dog learned polymorphism*
The moose likes Struts and the fly likes getting stored values from form 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 » Frameworks » Struts
Bookmark "getting stored values from form" Watch "getting stored values from form" New topic
Author

getting stored values from form

Venkat Aditya
Greenhorn

Joined: Jul 13, 2007
Posts: 6
is there any way that we can get form values back to same page from navigated page. ie parent page values + (opens pop up) pop values to parent values
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can do this with JavaScript. When a popup window is opened from a parent window, you can get a reference to the parent window with the vairable window.opener. Once you have this reference, you can use it to transfer values from the popup to the parent. For example, suppose I have a hidden field named foo in my parent window and I have a text field named bar on my popup window. I can set the value of foo by executing the following JavaScript code in my popup window:

[ September 13, 2007: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Venkat Aditya
Greenhorn

Joined: Jul 13, 2007
Posts: 6
Yes i tried the same way but i need to save the values from the form bean but not thru the fields ie i can set these values to some fields from page 2 to page 1 but i am not useing any textbox or fields this is simple collection from form which will write to page
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Vld,

Please check your private messages. You can do so by clicking on My Profile
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm afraid you've lost me. At this point, I have no idea what it is you're trying to accomplish. Could you try and explain it again as clearly as possible?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting stored values from form
 
Similar Threads
Getting values from popup window to parent window
Getting form values from Pop up and processing them in Parent
how to implement this in DHTML
document.write() gives script error in IE but not in firefox.
Simple Query