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 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 STRUTS
           
 
构造方法摘要
ContextUtil()
           
 
方法摘要
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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

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