Solved

how to use href with display tag.

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rebasing and merging used in SCM 1 78
spring AOP 6 88
Java Script nested call 3 87
jsp CRUD operations with and without prepared statement also hibernatge 1 12
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Building a successful professional career is a long and difficult journey, especially in case if your decisions are not chosen carefully. For example, if you think that you can get to the desired position without experience and apply for it, your ch…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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