Package org.apache.struts2.util
Class ComponentUtils
java.lang.Object
org.apache.struts2.util.ComponentUtils
Various static methods used with components
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsExpression
(String expr) static boolean
isExpression
(String expr) Check if object is an expressionstatic String
stripExpression
(String expr) Simply strip the "%{" and "}" off.
-
Constructor Details
-
ComponentUtils
public ComponentUtils()
-
-
Method Details
-
stripExpression
Simply strip the "%{" and "}" off.- Parameters:
expr
- the expression (must be not null)- Returns:
- the stripped expression
-
isExpression
Check if object is an expression- Parameters:
expr
- to treat as an expression- Returns:
- true if it is an expression
-
containsExpression
-