public class TaglibUtils extends Object
| Constructor and Description |
|---|
TaglibUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setScopedVariable(javax.servlet.jsp.PageContext pageContext,
String scope,
String var,
Object value)
Set the value of the variable in the given scope with the given name as the given object.
|
static String |
shortenPath(String path,
int preChars,
int postChars) |
static String |
shortenPath(String path,
int preChars,
int postChars,
boolean strict) |
public static void setScopedVariable(javax.servlet.jsp.PageContext pageContext,
String scope,
String var,
Object value)
null, the variable will be set in the page scope.pageContext - the page contextscope - the scope of the variable ("application", "session", "request", or "page")var - the name of the variablevalue - the value of the variablepublic static String shortenPath(String path, int preChars, int postChars, boolean strict)
preChars - The maximum number of chars to appear before the "..."postChars - The maximum number of chars to appear after the "..."Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.