public class JSPUtility extends Object
Modifier and Type | Field and Description |
---|---|
static DecimalFormat |
currencyFormatter
Converts the given number in currency format.
|
static DateFormat |
dateFormatter |
static String |
SRC_ROOT |
Constructor and Description |
---|
JSPUtility() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeURL(String page,
Object... params)
Encodes parameter key-values in a URL.
|
static String |
format(Date date) |
static String |
format(Number price) |
static String |
getURL(String className,
String anchor) |
static Double |
toDouble(String v)
Converts the given String to a double.
|
public static final DecimalFormat currencyFormatter
public static final DateFormat dateFormatter
public static final String SRC_ROOT
public static Double toDouble(String v)
public static String encodeURL(String page, Object... params)
page
- the base pageparams
- key-value pairs of parameters passed in to the page URL.
null or empty argument is allowed.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.