• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 466
  • Last Modified:

java struts link with parameter

<logic:iterate id="result" name="CategoriesBean" property="results">
<td><bean:write name="result" property="cat_id"/></td>
<td><bean:write name="result" property="cat_name"/></td>

here is the a part of code from my jsp page.
Here I create a table with cat_id and cat_name as columns.
My question is how can I add link to the values in the cat_name column.
The links should be appended by the dynamic parameter represented by the cat_id.
Please let me know a way..
  • 3
1 Solution
Loganathan NatarajanLAMP DeveloperCommented:
here is the answer

<html:link action="" paramName="result" paramProperty="cat_id" paramId="cat_id"><bean:write name="result" property="cat_name"/> </html:link>

Open in new window

Loganathan NatarajanLAMP DeveloperCommented:
Loganathan NatarajanLAMP DeveloperCommented:
vinodkumarn37Author Commented:
Thanks dude..... it worked

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now