java struts link with parameter

Posted on 2009-02-23
Last Modified: 2013-12-02
<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..
Question by:vinodkumarn37
    LVL 36

    Accepted Solution

    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

    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    LVL 36

    Expert Comment

    by:Loganathan Natarajan

    Author Closing Comment

    Thanks dude..... it worked

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now