posted 15 years ago
Eric, Here it goes... In JSP 1 I have a table with 6 columns... Initially in the JSP1 the table contains only a header.The rows for the table are added dynamically and only for column values are added in this JSP via a form.The remaining two values should be obtained from JSP-2 which is precisely created to send those 2 values
For example I added 4 rows i.e The table now contains 4 rows with the first four row-column values filled up and the remaining two columns of all rows left empty.
Now the user is supposed to select a row and click on 'Fetch' button in JSP-1 to go to JSP-2 to for fetching values .In JSP-2, I prepared the values and have them in two JS variables,var-1 containing value for one of the two empty columns and var-2 for the other empty one of selected row of JSP-1.Now in JSP-2 when user click on 'Send' button the control goes back to JSP-1 and these two values should fly and sit in their appropriate places of the two empty columns of the selected row of JSP-1.
What are the ways in achieving this?? I am learning how to append values as query parameters on the URL...
what is the best way?? I am developing in struts-2 ... Badly stuck here!