org.apache.struts2.views.util
类 ContextUtil
java.lang.Object
org.apache.struts2.views.util.ContextUtil
public class ContextUtil
- extends Object
Value Stack's Context related Utilities.
方法摘要 |
static Map |
getStandardContext(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
static String |
getTemplateSuffix(Map context)
Returns a String for overriding the default templateSuffix if templateSuffix is on the stack |
static boolean |
isUseAltSyntax(Map context)
Return true if either Configuration's altSyntax is on or the stack context's useAltSyntax is on |
REQUEST
public static final String REQUEST
- 另请参见:
- 常量字段值
REQUEST2
public static final String REQUEST2
- 另请参见:
- 常量字段值
RESPONSE
public static final String RESPONSE
- 另请参见:
- 常量字段值
RESPONSE2
public static final String RESPONSE2
- 另请参见:
- 常量字段值
SESSION
public static final String SESSION
- 另请参见:
- 常量字段值
BASE
public static final String BASE
- 另请参见:
- 常量字段值
STACK
public static final String STACK
- 另请参见:
- 常量字段值
OGNL
public static final String OGNL
- 另请参见:
- 常量字段值
STRUTS
public static final String STRUTS
- 另请参见:
- 常量字段值
ACTION
public static final String ACTION
- 另请参见:
- 常量字段值
ContextUtil
public ContextUtil()
getStandardContext
public static Map getStandardContext(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
isUseAltSyntax
public static boolean isUseAltSyntax(Map context)
- Return true if either Configuration's altSyntax is on or the stack context's useAltSyntax is on
- 参数:
context
- stack's context
- 返回:
- boolean
getTemplateSuffix
public static String getTemplateSuffix(Map context)
- Returns a String for overriding the default templateSuffix if templateSuffix is on the stack
- 参数:
context
- stack's context
- 返回:
- String