I have a list of names of students in a class that being printed on JSP using iterator. I am giving each name a different id. Now I want to get the details of the name when a user clicks on the name. I am using struts2. How can I send this name to action when I click on the hyperlink of that name.
<s:a href="actionName" id="<s:property value='name'>"><s:property value='name'></s:a>
when I click on the name I should be able to send that name to the action. I have to send the name because I am using the same action for getting individual details of the students.
I saw in Internet that we can do this using JS. But I don't how to do it. Can some one help me?