Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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` | `STRUTS`

Constructor Summary
`ContextUtil()`

Method Summary
`static Map` | `getStandardContext(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

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

### STRUTS

    public static final String STRUTS

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(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

  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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.