PlaceholderTag Class

com.bea.p13n.placeholder.servlets.jsp.taglib
PlaceholderTag Class

public class PlaceholderTag

    extends TagSupport

Corresponds to <ph:placeholder>.

The <ph:placeholder>. tag will query the PlaceholderService for the content to place in the placeholder.

Tag Attribute

Required

Type

Description

name

yes

String

The name of the placeholder

height

no

Integer

The requested height of the resulting content

width

no

Integer

The requested width of the resulting content


Hierarchy
Object
  TagSupport
    PlaceholderTag
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

PlaceholderTag()

 

Method Summary

public int
doStartTag()
Return the content for the named placeholder to the JSP page.
protected String
fixPlaceholderName(String name)
Convert a placeholder name to a placeholder URI, as best we can.
protected String
getDisplayContent()
Get the content string to display.
public int
getRenderer()
public void
release()
Release/reset this tag.
public void
setHeight(int height)
set the height property.
public void
setHeight(String ht)
public void
setName(String name)
set the name property.
public void
setRenderer(int i)
public void
setWidth(int width)
set the width property
public void
setWidth(String wd)
 
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

PlaceholderTag

public PlaceholderTag()
 

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

fixPlaceholderName(String) Method

protected String fixPlaceholderName(String name)
Convert a placeholder name to a placeholder URI, as best we can.


getDisplayContent() Method

protected String getDisplayContent()
throws CreateException, ContentException, RemoteException
Get the content string to display.

Exceptions

CreateException
ContentException
RemoteException

getRenderer() Method

DEPRECATED not used.

public int getRenderer()

release() Method

public void release()
Release/reset this tag.

Overrides
TagSupport.release()

setHeight(int) Method

public void setHeight(int height)
set the height property.

Parameters

height
integer height of the placeholder

setHeight(String) Method

public void setHeight(String ht)

setName(String) Method

public void setName(String name)
set the name property.

Parameters

name
String name of the placeholder

setRenderer(int) Method

DEPRECATED not used.

public void setRenderer(int i)

setWidth(int) Method

public void setWidth(int width)
set the width property

Parameters

width
integer width of the placeholder

setWidth(String) Method

public void setWidth(String wd)