public class PageOptionsTag extends StripesTagSupport
Provides a tag to override the StripesFilter configuration property
Stripes.HtmlMode.
htmlMode accepts any string value, however any value not equal to html,
case-insensitive, puts Stripes into its default mode of XHTML-compatible output.
Examples of the tag's use then might be:
Typical use of the tag in context of a Stripes application follows:
Deployer will set the application RuntimeConfiguration of Stripes.HtmlMode. A
deployer choosing not to set this option, defaults the Stripes application to its
XHTML-compatible format.
Stripes.HtmlMode will set the default X/HTML output for the entire
application. Individual views of the application wishing to alter the application default will
provide this tag, at or near the beginning of the view, or JSP.| Modifier and Type | Field and Description |
|---|---|
static String |
CFG_KEY_HTML_MODE
Configuration key that sets the default HTML mode for the application.
|
static String |
REQ_ATTR_HTML_MODE
Request attribute that affects how HTML is rendered by other tags.
|
pageContext, parentTagEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
PageOptionsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Abstract method from the Tag interface.
|
int |
doStartTag()
Abstract method from the Tag interface.
|
static String |
getHtmlMode(PageContext pageContext)
Get the HTML mode for the given page context.
|
void |
setHtmlMode(String htmlMode)
Set the HTML mode string.
|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setPageContext, setParentpublic static String CFG_KEY_HTML_MODE
public static String REQ_ATTR_HTML_MODE
public static String getHtmlMode(PageContext pageContext)
REQ_ATTR_HTML_MODE is present then use that value. Otherwise, use the global
configuration property CFG_KEY_HTML_MODE.public int doStartTag()
throws JspException
StripesTagSupportdoStartTag in interface TagdoStartTag in class StripesTagSupportJspExceptionpublic int doEndTag()
throws JspException
StripesTagSupportdoEndTag in interface TagdoEndTag in class StripesTagSupportJspExceptionpublic void setHtmlMode(String htmlMode)
© Copyright 2005-2006, Stripes Development Team.