org.apache.struts2.views.util
Class ContextUtil
java.lang.Object
org.apache.struts2.views.util.ContextUtil
public class ContextUtil
- extends Object
Value Stack's Context related Utilities.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQUEST
public static final String REQUEST
- See Also:
- Constant Field Values
REQUEST2
public static final String REQUEST2
- See Also:
- Constant Field Values
RESPONSE
public static final String RESPONSE
- See Also:
- Constant Field Values
RESPONSE2
public static final String RESPONSE2
- See Also:
- Constant Field Values
SESSION
public static final String SESSION
- See Also:
- Constant Field Values
BASE
public static final String BASE
- See Also:
- Constant Field Values
STACK
public static final String STACK
- See Also:
- Constant Field Values
OGNL
public static final String OGNL
- See Also:
- Constant Field Values
STRUTS
public static final String STRUTS
- See Also:
- Constant Field Values
ACTION
public static final String ACTION
- See Also:
- Constant Field Values
altSyntax
public static boolean altSyntax
ContextUtil
public ContextUtil()
setAltSyntax
public static void setAltSyntax(String val)
getStandardContext
public static Map getStandardContext(ValueStack stack,
HttpServletRequest req,
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
- Parameters:
context
- stack's context
- Returns:
- boolean
getTemplateSuffix
public static String getTemplateSuffix(Map context)
- Returns a String for overriding the default templateSuffix if templateSuffix is on the stack
- Parameters:
context
- stack's context
- Returns:
- String
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.