AdRenderTag Class

com.bea.p13n.ad.servlets.jsp.taglib
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

Field Summary

   
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

AdRenderTag()

 

Method Summary

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
   
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

AdRenderTag

public AdRenderTag()
 

Method Detail

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