Solved

how to use href with display tag.

Posted on 2007-03-21
2
467 Views
Last Modified: 2008-02-01
Hi Experts.

how to use href with display tag.

I need to hyperlink a column
<display:column title="Voyage in Queue" property="link2" align="left" />
i need to do hyperlink the value for voyage in queue. Can you please help me out how to do it.

Thanks,
Ganne
0
Comment
Question by:gannev
2 Comments
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 18766328
One way is to create get and set methods for link2 and construct your link there.  Something like:
public String getLink2(){
  ListObject currRowObject = (ListObject)getCurrentRowObject();
  String queueId = (currRowObject.getQueueId());  
  return "<a href=/queue.jsp?queueId =" + queueId  + ">Link2</a>";
}
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18767482
<display: column title="Voyage in Queue" property="link2" align="left" href = "whatever HREF you want" />

?

http://displaytag.sourceforge.net/10/tut_links.html
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
J2SE 5.0 metadata 1 58
dynamic reloading of jsp in jetty 2 120
How to Make JSP Pages Responsive ? details are below 3 785
going to wrong jsp page 2 22
This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 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