|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.jsp.context.JspUtil
public final class JspUtil
Utility class for working within a Jsp environment.
Method Summary | |
---|---|
static TilesContainer |
getContainer(PageContext context)
Returns the default Tiles container. |
static TilesContainer |
getContainer(PageContext context,
String key)
Returns a specific Tiles container. |
static TilesContainer |
getCurrentContainer(PageContext context)
Returns the current container that has been set, or the default one. |
static boolean |
isForceInclude(PageContext context)
Returns true if forced include of the result is needed. |
static void |
setContainer(PageContext context,
TilesContainer container)
Configures the default container to be used in the application. |
static void |
setContainer(PageContext context,
TilesContainer container,
String key)
Configures the container to be used in the application. |
static void |
setCurrentContainer(PageContext context,
String key)
Sets the current container to use in web pages. |
static void |
setCurrentContainer(PageContext context,
TilesContainer container)
Sets the current container to use in web pages. |
static void |
setForceInclude(PageContext context,
boolean forceInclude)
Sets the option that enables the forced include of the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isForceInclude(PageContext context)
context
- The page context.
true
the include operation must be forced.public static void setForceInclude(PageContext context, boolean forceInclude)
context
- The page context.forceInclude
- If true
the include operation must be
forced.public static TilesContainer getContainer(PageContext context)
context
- The page context to use.
public static TilesContainer getContainer(PageContext context, String key)
context
- The page context to use.key
- The key under which the container is stored. If null, the
default container will be returned.
public static void setContainer(PageContext context, TilesContainer container)
context
- The page context object to use.container
- The container object to set.public static void setContainer(PageContext context, TilesContainer container, String key)
context
- The page context object to use.container
- The container object to set.key
- The key under which the container will be stored.public static void setCurrentContainer(PageContext context, String key)
context
- The page context to use.key
- The key under which the container is stored.public static void setCurrentContainer(PageContext context, TilesContainer container)
context
- The page context to use.container
- The container to use as the current container.public static TilesContainer getCurrentContainer(PageContext context)
context
- The page context to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |