Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attempting to get a parameter from a link

 
Gustavo Santos
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

I have a JSP that lists some values and turn them into a link, and each link has its own value... but the problem is that I'm attempting to get the value of the link that has been clicked, but unfortunately I get the value of the last link that has been listed on the forEach loop... does anybody know how can I get that value by passing it to either a parameter or an attribute?

JSP:



Action:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
a kishore
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gustavo,


<tr>
<td bgcolor="#817339" width="15"></td>
<td><html:link href="javascript:;" onclick="$('methodsForm').submit();">All</html:link></td>
</tr>


may i know why you are using the above section?

regards,
kishore
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean when you say "each link has its own value"? Each link is the same, and simply submits the form.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic