How to return a selected string within an <a> tag which contains iterated a list of values?

I am try to return a singular string value from my iterator list in my jsp when I click the string itself. What is the best approach for this, I was thinking a javascript but if there is any better suggestions this would help.

<s:iterator value="#session.test" var="test">

<center><a class="ENV"> <s:property value="%{#test}"/></a></center>

</s:iterator>


Source: jsp

Leave a Reply