I'm trying to populate a textbox onlick of a hyperlink. Following are the steps that would better explain the scenario : 1. On click of a hyperlink a new window(small) is opened which has a number that is generated from database. There is an OK button if the user agrees with the number. 2. Onlick of OK button the number has to be populated into the textbox from which the entire process started.
I have generated the number in the small window but I'm failing to populate it in the textbox. My approach till now is onlick of the hyperlink I have opened a new window using window.open(). And onload of the new jsp in the small window I've called an action that gives me the number from database and I'm displaying in the small window. Now I'm stuck :(
P.S. : I'm using struts 1.x