public class TagUtils extends Object
Constructor and Description |
---|
TagUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
createPathInfoWithoutRequestContext(String path,
Map<String,List<String>> parametersMap,
List<String> removedParametersList,
javax.servlet.http.HttpServletRequest servletRequest) |
static String |
encloseInHTMLComment(String string)
Returns the string enclosed in HTML comments.
|
static Locale |
getLocale(javax.servlet.jsp.PageContext pc) |
static String |
getQueryString(String characterEncoding,
Map<String,List<String>> parametersMap,
List<String> removedParametersList) |
static String |
toJSONMap(Map<?,?> map)
Returns the given map as a JSON map, with the keys and values in double quotes.
|
static void |
writeOrSetVar(String url,
String var,
javax.servlet.jsp.PageContext pageContext,
String scope) |
public static String toJSONMap(Map<?,?> map)
Object.toString()
.map
- a map (null
or empty are allowed)public static String encloseInHTMLComment(String string)
string
- a string (null
is allowed)public static void writeOrSetVar(String url, String var, javax.servlet.jsp.PageContext pageContext, String scope) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static String createPathInfoWithoutRequestContext(String path, Map<String,List<String>> parametersMap, List<String> removedParametersList, javax.servlet.http.HttpServletRequest servletRequest) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static String getQueryString(String characterEncoding, Map<String,List<String>> parametersMap, List<String> removedParametersList) throws UnsupportedEncodingException
UnsupportedEncodingException
public static Locale getLocale(javax.servlet.jsp.PageContext pc)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.