This is a repeat of post in html/JS... I would request the moderators to delete there, as no one is answering there or move it to covenient position
I am not certain whether this should be here or be in
struts,
jsp forum but would proceed...
The application is in struts-2
I have 2 JSP's... The 1st JSP has a 5 column table... The values for the 4th and 5th columns are obtained from the next JSP...These values are currently residing in a JS variable prepared in JSP-2.
Scenario:-->
In 1st JSP, I select row1 and click on 'gotoNext' button to go to next JSP in order to prepare values for the 4th and 5th columns...
In JSP-2, I prepared the 2 values for that row using Javascript...
Now on click of back button in JSP2 I need to go back to JSP1 and set these 2 values in 2 empty fields of the row that I previously selected...
I don't know the correct way to do it and these are a few options circulating in my mind viz...
1)Should I send these values unsing an AJax call?
2)How to pass those 2 JS values from JSP-2 and set them in empty fields of that row of JSP1