Class ComponentUtils

java.lang.Object
org.apache.struts2.util.ComponentUtils

public class ComponentUtils extends Object
Various static methods used with components
  • Constructor Details

    • ComponentUtils

      public ComponentUtils()
  • Method Details

    • stripExpression

      public static String stripExpression(String expr)
      Simply strip the "%{" and "}" off.
      Parameters:
      expr - the expression (must be not null)
      Returns:
      the stripped expression
    • isExpression

      public static boolean isExpression(String expr)
      Check if object is an expression
      Parameters:
      expr - to treat as an expression
      Returns:
      true if it is an expression
    • containsExpression

      public static boolean containsExpression(String expr)