com.opensymphony.webwork.views.util
Class ContextUtil

java.lang.Object
  extended by com.opensymphony.webwork.views.util.ContextUtil

public class ContextUtil
extends Object

Value Stack's Context related Utilities.

Version:
$Date: 2006-01-26 01:21:01 +0800 (Thu, 26 Jan 2006) $ $Id: ContextUtil.java 2029 2006-01-25 17:21:01Z rainerh $
Author:
plightbo, tm_jee

Field Summary
static String ACTION
           
static String BASE
           
static String OGNL
           
static String REQUEST
           
static String REQUEST2
           
static String RESPONSE
           
static String RESPONSE2
           
static String SESSION
           
static String STACK
           
static String WEBWORK
           
 
Constructor Summary
ContextUtil()
           
 
Method Summary
static Map getStandardContext(OgnlValueStack stack, HttpServletRequest req, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

WEBWORK

public static final String WEBWORK
See Also:
Constant Field Values

ACTION

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

ContextUtil

public ContextUtil()
Method Detail

getStandardContext

public static Map getStandardContext(OgnlValueStack 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

WebWork Project Page