|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.tag.StripesTagSupport
net.sourceforge.stripes.tag.PageOptionsTag
public class PageOptionsTag
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.
Field Summary | |
---|---|
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. |
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
pageContext, parentTag |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
PageOptionsTag()
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport |
---|
getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String CFG_KEY_HTML_MODE
public static String REQ_ATTR_HTML_MODE
Constructor Detail |
---|
public PageOptionsTag()
Method Detail |
---|
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
StripesTagSupport
doStartTag
in interface Tag
doStartTag
in class StripesTagSupport
JspException
public int doEndTag() throws JspException
StripesTagSupport
doEndTag
in interface Tag
doEndTag
in class StripesTagSupport
JspException
public void setHtmlMode(String htmlMode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |