Solved

how to use href with display tag.

Posted on 2007-03-21
2
458 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

15 Experts available now in Live!

Get 1:1 Help Now