Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting response values in a text box

 
Pradeep Balasubramanian
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uh... should I also repeat my response?
 
Pradeep Balasubramanian
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Struts 2
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic