org.apache.struts.taglib.html
public class FrameTag extends LinkTag
<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.Modifier and Type | Field and Description |
---|---|
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 java.lang.Integer |
marginheight
The margin height in pixels, or zero for no setting.
|
protected java.lang.Integer |
marginwidth
The margin width in pixels, or null 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)?
|
action, anchor, forward, href, indexId, linkName, messages, module, name, page, paramId, paramName, paramProperty, paramScope, property, scope, target, text, transaction, useLocalEncoding
accesskey, defaultLocale, doDisabled, doReadonly, indexed, tabindex
Constructor and Description |
---|
FrameTag() |
Modifier and Type | Method and Description |
---|---|
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() |
java.lang.Integer |
getMarginheight() |
java.lang.Integer |
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(java.lang.Integer marginheight) |
void |
setMarginwidth(java.lang.Integer marginwidth) |
void |
setNoresize(boolean noresize) |
void |
setScrolling(java.lang.String scrolling) |
calculateURL, doAfterBody, getAction, getAnchor, getForward, getHref, getIndexId, getLinkName, getModule, getName, getPage, getParamId, getParamName, getParamProperty, getParamScope, getProperty, getScope, getTarget, getTransaction, isUseLocalEncoding, setAction, setAnchor, setForward, setHref, setIndexId, setLinkName, setModule, setName, setPage, setParamId, setParamName, setParamProperty, setParamScope, setProperty, setScope, setTarget, setTransaction, setUseLocalEncoding
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
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 java.lang.Integer marginheight
protected java.lang.Integer marginwidth
protected boolean noresize
protected java.lang.String scrolling
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 java.lang.Integer getMarginheight()
public void setMarginheight(java.lang.Integer marginheight)
public java.lang.Integer getMarginwidth()
public void setMarginwidth(java.lang.Integer 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
Copyright ? 2000-2014 - The Apache Software Foundation