public class ComponentUtils extends Object
Constructor and Description |
---|
ComponentUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
altSyntax(ValueStack stack)
Is the altSyntax enabled? [TRUE]
|
static boolean |
containsExpression(String expr) |
static boolean |
isExpression(String expr)
Check if object is expression base on altSyntax
|
static String |
stripExpressionIfAltSyntax(ValueStack stack,
String expr)
If altSyntax (%{...}) is applied, simply strip the "%{" and "}" off.
|
public static String stripExpressionIfAltSyntax(ValueStack stack, String expr)
stack
- the ValueStack where the context value is searched for.expr
- the expression (must be not null)public static boolean altSyntax(ValueStack stack)
stack
- the ValueStack where the context value is searched for.struts.properties
where the altSyntax flag is defined.public static boolean isExpression(String expr)
expr
- to treat as an expressionpublic static boolean containsExpression(String expr)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.