This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In the first jsp I have a table with a few rows having 5 columns and 1st column being the primary key...
In all the rows the last 2 column values calculated and are obtained from the next JSP.So in JSP 1 the user selects a row and for that row the values are obtained from JSP2.
In JSP2 table there is a table with the 1st column being a foreign key to the JSP 1 table and the 2 column for the two values calculated in JSP2 that are to be sent to JSP1...
On click on 'AddValues' button in JSP2,the control goes back to jsp1 and should set these values in the two empty spaces of the selected row of JSP1.
What should I do in JSP2 on click on 'AddValues' button? Any inputs or change in approach are welcomed! The application is in struts-2 but I felp the issue is circled around JS and hence the post here!