|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--javax.servlet.jsp.tagext.BodyTagSupport | +--org.apache.struts.taglib.html.BaseHandlerTag | +--org.apache.struts.taglib.html.LinkTag | +--org.apache.struts.taglib.html.FrameTag
Generate an HTML <frame>
tag with similar capabilities
as those the <html:link>
tag provides for hyperlink
elements. The src
element is rendered using the same technique
that LinkTag
uses to render the href
attribute of a
hyperlink. Additionall, the HTML 4.0
frame tag attributes noresize
, scrolling
,
marginheight
, marginwidth
,
frameborder
, and longdesc
are supported.
The frame
name
attribute is rendered based on the frameName
property.
Note that the value of longdesc
is intended to be a URI, but
currently no rewriting is supported. The attribute is set directly from
the property value.
Field Summary | |
protected java.lang.String |
frameborder
The frameborder attribute that should be rendered (1, 0). |
protected java.lang.String |
frameName
The name attribute that should be rendered for this frame. |
protected java.lang.String |
longdesc
URI of a long description of this frame (complements title). |
protected int |
marginheight
The margin height in pixels, or zero for no setting. |
protected int |
marginwidth
The margin width in pixels, or zero for no setting. |
protected boolean |
noresize
Should users be disallowed to resize the frame? |
protected java.lang.String |
scrolling
What type of scrolling should be supported (yes, no, auto)? |
Fields inherited from class org.apache.struts.taglib.html.LinkTag |
action, anchor, forward, href, indexId, linkName, messages, name, page, paramId, paramName, paramProperty, paramScope, property, scope, target, text, transaction |
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
accesskey, defaultLocale, indexed, tabindex |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
FrameTag()
|
Method Summary | |
int |
doEndTag()
Ignore the end of this tag. |
int |
doStartTag()
Render the appropriately encoded URI. |
java.lang.String |
getFrameborder()
|
java.lang.String |
getFrameName()
|
java.lang.String |
getLongdesc()
|
int |
getMarginheight()
|
int |
getMarginwidth()
|
boolean |
getNoresize()
|
java.lang.String |
getScrolling()
|
void |
release()
Release any acquired resources. |
void |
setFrameborder(java.lang.String frameborder)
|
void |
setFrameName(java.lang.String frameName)
|
void |
setLongdesc(java.lang.String longdesc)
|
void |
setMarginheight(int marginheight)
|
void |
setMarginwidth(int marginwidth)
|
void |
setNoresize(boolean noresize)
|
void |
setScrolling(java.lang.String scrolling)
|
Methods inherited from class org.apache.struts.taglib.html.LinkTag |
calculateURL, doAfterBody, getAction, getAnchor, getForward, getHref, getIndexId, getLinkName, getName, getPage, getParamId, getParamName, getParamProperty, getParamScope, getProperty, getScope, getTarget, getTransaction, setAction, setAnchor, setForward, setHref, setIndexId, setLinkName, setName, setPage, setParamId, setParamName, setParamProperty, setParamScope, setProperty, setScope, setTarget, setTransaction |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
Field Detail |
protected java.lang.String frameborder
protected java.lang.String frameName
name
attribute that should be rendered for this frame.
protected java.lang.String longdesc
protected int marginheight
protected int marginwidth
protected boolean noresize
protected java.lang.String scrolling
Constructor Detail |
public FrameTag()
Method Detail |
public java.lang.String getFrameborder()
public void setFrameborder(java.lang.String frameborder)
public java.lang.String getFrameName()
public void setFrameName(java.lang.String frameName)
public java.lang.String getLongdesc()
public void setLongdesc(java.lang.String longdesc)
public int getMarginheight()
public void setMarginheight(int marginheight)
public int getMarginwidth()
public void setMarginwidth(int marginwidth)
public boolean getNoresize()
public void setNoresize(boolean noresize)
public java.lang.String getScrolling()
public void setScrolling(java.lang.String scrolling)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class LinkTag
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class LinkTag
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class LinkTag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |