How to pass row id of colection to next JSP page for display using Struts
posted 11 years ago
Here is where I want to place the program name on my second jsp page: (This now works fine to get the program name � but it returns the program names in the collection, so I can have multiple program names if there were more than one row of data on the previous page)
How do I check each iteration in the above code to see if it equals the row index of the selected data row that was on the previous jsp page (shown below)? Here is the code that places the link on the jsp (IN BOLD) that a user might choose (each row would have a different index number for the collection of iterations). Where in this code would I put some code to write the row index to the session (or somewhere so it can be available to the next page to test against the collection again to get the program name associated with the same record row as on this page)?