AdRenderTag Class
- public class AdRenderTag
extends TagSupport
Tag class to render an ad.
This expects the AdService to use to be found at
"java:comp/env/AdService".
-
Hierarchy
-
Object
TagSupport
AdRenderTag
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
public int |
-
doStartTag ()
- Return the content for the named placeholder to the JSP page.
|
public void |
-
release ()
- Release any resources or variables.
|
public void |
-
setAd (Node ad)
|
public void |
-
setHeight (String str)
- Set the height property.
|
public void |
-
setHeight (int height)
- Set the height property.
|
public void |
-
setWidth (String str)
- Set the width property
|
public void |
-
setWidth (int width)
- Set the width property
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdRenderTag
public AdRenderTag()
doStartTag() Method
public int doStartTag()
throws JspException
Return the content for the named placeholder to the JSP page.
-
Overrides
-
TagSupport.doStartTag()
Exceptions
-
JspException
release() Method
public void release()
Release any resources or variables.
-
Overrides
-
TagSupport.release()
setAd(Node) Method
public void setAd(Node
ad)
setHeight(String) Method
public void setHeight(String
str)
Set the height property.
Parameters
-
str
- height of the placeholder
setHeight(int) Method
public void setHeight(int height)
Set the height property.
Parameters
-
height
- integer height of the placeholder
setWidth(String) Method
public void setWidth(String
str)
Set the width property
Parameters
-
str
- width of the placeholder
setWidth(int) Method
public void setWidth(int width)
Set the width property
Parameters
-
width
- integer width of the placeholder