org.rhq.enterprise.gui.legacy.util
Class TaglibUtils
java.lang.Object
org.rhq.enterprise.gui.legacy.util.TaglibUtils
public class TaglibUtils
- extends Object
Utilities class that provides convenience methods for taglib classes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaglibUtils
public TaglibUtils()
setScopedVariable
public 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. If the scope is
specified as
null, the variable will be set in the page scope.
- Parameters:
pageContext - the page contextscope - the scope of the variable ("application", "session", "request", or "page")var - the name of the variablevalue - the value of the variable
shortenPath
public static String shortenPath(String path,
int preChars,
int postChars,
boolean strict)
- Parameters:
preChars - The maximum number of chars to appear before the "..."postChars - The maximum number of chars to appear after the "..."
- Returns:
- The path, shortened by putting "..." in the middle
shortenPath
public static String shortenPath(String path,
int preChars,
int postChars)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.