aspose file tools*
The moose likes Struts and the fly likes Getting response values in a text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting response values in a text box" Watch "Getting response values in a text box" New topic
Author

Getting response values in a text box

Pradeep Balasubramanian
Ranch Hand

Joined: Jun 16, 2008
Posts: 75
Scenario:

There is a popup window which is displayed on clicking the button named "Import" in the main window.
The popup window has two list boxes.
The main window has two text boxes.
On entering the values in two list box, and clicking the "Submit" Button in the select box, the values should get populated in the corresponding text boxes.


Is there any feature in Struts for the above requirement ?


Regards,<br />Pradeep Balasubramanian<br /> <br />You have to grow from the inside out. None can teach you, none can make you spiritual. There is no other teacher but your own soul. <br /> <br />- Swami Vivekananda
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, but there's a feature in the browser: JavaScript.

(Actually, you *might* be able to do this with Dojo and topics, if you're using Struts 2, but you forgot to mention which Struts you're using.)
Pradeep Balasubramanian
Ranch Hand

Joined: Jun 16, 2008
Posts: 75
Scenario:

There is a popup window which is displayed on clicking the button named "Import" in the main window.
The popup window has two textarea elements.
The main window has two text boxes.
On entering the values in two list box, and clicking the "Submit" Button in the popup window, the values should get populated in the corresponding text boxes.


Is there any feature in Struts(any version) for the above requirement ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Uh... should I also repeat my response?
Pradeep Balasubramanian
Ranch Hand

Joined: Jun 16, 2008
Posts: 75
I'm using Struts 2
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Then you may be able to update a div on the parent page by using topics.

But I still think it'd be easier to just use plain JavaScript.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting response values in a text box
 
Similar Threads
Window.opener problem
Window.Opener Problem
updating ArrayList on parent from child window
Problem with pop-up window
Getting values from popup window to parent window