Here you can find the source of getUserLink(BigDecimal id, String name)
Parameter | Description |
---|---|
id | the id |
name | the name |
public static String getUserLink(BigDecimal id, String name)
//package com.java2s; /**//from w ww. j a va2 s.co m * Highlights words in a string. Words matching ignores case. The actual * higlighting method is specified with the start and end higlight tags. * Those might be beginning and ending HTML bold tags, or anything else. * <p> * * This method is under the Jive Open Source Software License and was * written by Mark Imbriaco. * * @param string * the String to highlight words in. * @return a new String with the specified words highlighted. */ import java.math.BigDecimal; public class Main { /** * Gets the user link. * * @param id * the id * @param name * the name * @return the user link */ public static String getUserLink(BigDecimal id, String name) { return "<a href='person.jsp?uid=" + id.toString() + "'>" + name + "</a>"; } }