SelectByIdTag Class

DEPRECATED

com.bea.p13n.content.servlets.jsp.taglib
SelectByIdTag Class

public class SelectByIdTag

    extends com.bea.p13n.content.servlets.jsp.taglib.BaseTag

A tag which finds a Content via its identifier and places it in a script variable for use.


Hierarchy
Object
  TagSupport
    com.bea.p13n.content.servlets.jsp.taglib.BaseTag
      SelectByIdTag
All Implemented Interfaces

IterationTag, Serializable, Tag

Field Summary

protected String
contentHome
The JNDI name of the ContentManager to contact.
protected String
contentId
The identifier of the content.
protected Map
contextParams
The search context params.
protected String
onNotFound
The error message to give if the identifier is not found.
   
Fields from  com.bea.p13n.content.servlets.jsp.taglib.com.bea.p13n.content.servlets.jsp.taglib.BaseTag
cacheId, cacheScope, cacheTimeout, failOnError, readOnly, useCache
 
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

SelectByIdTag()

 

Method Summary

public int
doStartTag()
Called to execute the tag.
public String
getContentHome()
Get the value of SelectByIdTag.contentHome.
public String
getContentId()
Get the value of SelectByIdTag.contentId.
public Map
getContextParams()
Get the context params.
public String
getOnNotFound()
Get the value of SelectByIdTag.onNotFound.
public void
release()
Release any resources.
public void
setContentHome(String v)
Set the value of SelectByIdTag.contentHome.
public void
setContentId(String v)
Set the value of SelectByIdTag.contentId.
public void
setContextParams(String str)
Set the context params from semi-colon separate list of name=value pairs.
public void
setContextParams(Map m)
Set the context params.
public void
setOnNotFound(String v)
Set the value of SelectByIdTag.onNotFound.
 
Methods from  com.bea.p13n.content.servlets.jsp.taglib.com.bea.p13n.content.servlets.jsp.taglib.BaseTag
getCacheId, getCacheScope, getCacheTimeout, getFailOnError, getHttpSession, getReadOnly, getUseCache, getUserId, setCacheId, setCacheScope, setCacheTimeout, setCacheTimeout, setFailOnError, setFailOnError, setReadOnly, setReadOnly, setUseCache, setUseCache, toDictionary
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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
 

Field Detail

contentHome

protected String contentHome
The JNDI name of the ContentManager to contact.


contentId

protected String contentId
The identifier of the content.


contextParams

protected Map contextParams
The search context params.


onNotFound

protected String onNotFound
The error message to give if the identifier is not found.

 

Constructor Detail

SelectByIdTag

public SelectByIdTag()
 

Method Detail

doStartTag() Method

public int doStartTag()
throws JspException
Called to execute the tag.

Overrides
TagSupport.doStartTag()

Exceptions

JspException

getContentHome() Method

public String getContentHome()
Get the value of SelectByIdTag.contentHome.


getContentId() Method

public String getContentId()
Get the value of SelectByIdTag.contentId.


getContextParams() Method

public Map getContextParams()
Get the context params.


getOnNotFound() Method

public String getOnNotFound()
Get the value of SelectByIdTag.onNotFound.


release() Method

public void release()
Release any resources.

Overrides
BaseTag.release()

setContentHome(String) Method

public void setContentHome(String v)
Set the value of SelectByIdTag.contentHome.


setContentId(String) Method

public void setContentId(String v)
Set the value of SelectByIdTag.contentId.


setContextParams(String) Method

public void setContextParams(String str)
Set the context params from semi-colon separate list of name=value pairs.


setContextParams(Map) Method

public void setContextParams(Map m)
Set the context params.


setOnNotFound(String) Method

public void setOnNotFound(String v)
Set the value of SelectByIdTag.onNotFound.