This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
Have you checked out Aspose?
 
subject: Getting response values in a text box
 
jQuery in Action, 3rd edition