pt.moredata.connection.taglibs
Class CreateDataSourceTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.connection.taglibs.CreateDataSourceTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
CreateConnectionTag

public class CreateDataSourceTag
extends javax.servlet.jsp.tagext.TagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally

CreateDataSourceTag.java Implementacao de uma tag para criar um DataSource. Company MoreData

Version:
$Revision: 1.11 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CreateDataSourceTag()
           
 
Method Summary
 void doCatch(java.lang.Throwable t)
          Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody().
 int doEndTag()
          Processa o fim da tag.
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
 int doStartTag()
          Processa o inicio da tag.
 java.lang.String getDataSourceId()
          Getter for property dataSourceId.
 java.lang.String getScope()
          Getter for property scope.
 void setDataSourceId(java.lang.String dataSourceId)
          Setter for property dataSourceId.
 void setErrorPage(java.lang.String errorPage)
          Setter for property errorPage.
 void setScope(java.lang.String scope)
          Setter for property scope.
 void setStartPage(java.lang.String startPage)
          Setter for property startPage.
protected  void setVariableInfo()
          Afecta o valor da variavel que contem o DataSource na pagina.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDataSourceTag

public CreateDataSourceTag()
Method Detail

setVariableInfo

protected void setVariableInfo()
Afecta o valor da variavel que contem o DataSource na pagina.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Processa o inicio da tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
Throws:
javax.servlet.jsp.JspTagException - Caso ocorra um erro a processar a tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Processa o fim da tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Returns:
a accao que deve ser tomada pelo servidor de .jsp apos ler a tag.
Throws:
javax.servlet.jsp.JspTagException - Caso ocorra um erro a processar a tag.

doCatch

public void doCatch(java.lang.Throwable t)
             throws java.lang.Throwable
Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method may throw an exception (the same or a new one) that will be propagated further up the nest chain. If an exception is thrown, doFinally() will be invoked. This method is intended to be used to respond to an exceptional condition.

Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Parameters:
t - - The throwable exception navigating through this tag.
Throws:
java.lang.Throwable - - if the exception is to be rethrown further up the nest chain.

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally

setStartPage

public void setStartPage(java.lang.String startPage)
Setter for property startPage.

Parameters:
startPage - New value of property startPage.

getDataSourceId

public java.lang.String getDataSourceId()
Getter for property dataSourceId.

Returns:
Value of property dataSourceId.

setDataSourceId

public void setDataSourceId(java.lang.String dataSourceId)
Setter for property dataSourceId.

Parameters:
dataSourceId - New value of property dataSourceId.

getScope

public java.lang.String getScope()
Getter for property scope.

Returns:
Value of property scope.

setScope

public void setScope(java.lang.String scope)
Setter for property scope.

Parameters:
scope - New value of property scope.

setErrorPage

public void setErrorPage(java.lang.String errorPage)
Setter for property errorPage.

Parameters:
errorPage - New value of property errorPage.