Currently, I am using struts2 with jsp. Within the JSP file, there is a table with several rows of data. To display the row data in the table, iterators are being used. Each row includes a button that allows the user to update the row's data, such as its priority. I am attempting to utilize JavaScript to update the row data when a button is clicked. However, I am encountering issues accessing the value of the button. It seems challenging to determine which specific button was clicked since each row contains its own button. I have tried using the following script without success:
function show_alert()
{
var partnumber = document.getElementById("stop").Value;
alert(partnumber);
}
Furthermore, I would appreciate any guidance on whether it is feasible to access the values of struts2 tag values within the iterator tag.
Your assistance is greatly appreciated.
Thank you in advance, regards, hemanth.