I’m facing this trouble: I have a <table> filled (<logic:iterate>) with some data coming from an Action, the last value (of each table row) is a link that would drives me to another JSP page with the data of the row where the link was clicked to edit the corresponding values.
The fact is that I don’t have any idea how to grab the values from that row and pass they to the other JSP page once the link is clicked.
Any ideas / example / implementation?!?!
The code that creates the link (in your table rendering JSP) can embed the ID of the object for that row in the link as query parameter such as
?objectId=13AB73C. (For security reasons it’s even better to embed a unique hash of the ID rather than an actual database id). That id can then be obtained from the request parameters.Once you have the id of the object for the row, you can load the data from the database for your editing page.