org.apache.struts2.views.util
Class ContextUtil

java.lang.Object
  extended by org.apache.struts2.views.util.ContextUtil

public class ContextUtil
extends java.lang.Object

Value Stack's Context related Utilities.


Field Summary
static java.lang.String ACTION
           
static java.lang.String BASE
           
static java.lang.String OGNL
           
static java.lang.String REQUEST
           
static java.lang.String REQUEST2
           
static java.lang.String RESPONSE
           
static java.lang.String RESPONSE2
           
static java.lang.String SESSION
           
static java.lang.String STACK
           
static java.lang.String STRUTS
           
 
Constructor Summary
ContextUtil()
           
 
Method Summary
static java.util.Map getStandardContext(ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
static java.lang.String getTemplateSuffix(java.util.Map context)
          Returns a String for overriding the default templateSuffix if templateSuffix is on the stack
static boolean isUseAltSyntax(java.util.Map context)
          Return true if either Configuration's altSyntax is on or the stack context's useAltSyntax is on
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST

public static final java.lang.String REQUEST
See Also:
Constant Field Values

REQUEST2

public static final java.lang.String REQUEST2
See Also:
Constant Field Values

RESPONSE

public static final java.lang.String RESPONSE
See Also:
Constant Field Values

RESPONSE2

public static final java.lang.String RESPONSE2
See Also:
Constant Field Values

SESSION

public static final java.lang.String SESSION
See Also:
Constant Field Values

BASE

public static final java.lang.String BASE
See Also:
Constant Field Values

STACK

public static final java.lang.String STACK
See Also:
Constant Field Values

OGNL

public static final java.lang.String OGNL
See Also:
Constant Field Values

STRUTS

public static final java.lang.String STRUTS
See Also:
Constant Field Values

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values
Constructor Detail

ContextUtil

public ContextUtil()
Method Detail

getStandardContext

public static java.util.Map getStandardContext(ValueStack stack,
                                               javax.servlet.http.HttpServletRequest req,
                                               javax.servlet.http.HttpServletResponse res)

isUseAltSyntax

public static boolean isUseAltSyntax(java.util.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 java.lang.String getTemplateSuffix(java.util.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-2011 Apache Software Foundation. All Rights Reserved.