• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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