Package javax.servlet.jsp.jstl.sql

Examples of javax.servlet.jsp.jstl.sql.SQLExecutionTag


    //*********************************************************************
    // Tag logic

    public int doEndTag() throws JspException {
  SQLExecutionTag parent = (SQLExecutionTag)
      findAncestorWithClass(this, SQLExecutionTag.class);
  if (parent == null) {
      throw new JspTagException(
                Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
  }

        if (value != null) {
            convertValue();
        }

  parent.addSQLParameter(value);
  return EVAL_PAGE;
    }
View Full Code Here


    //*********************************************************************
    // Tag logic

    public int doEndTag() throws JspException {
  SQLExecutionTag parent = (SQLExecutionTag)
      findAncestorWithClass(this, SQLExecutionTag.class);
  if (parent == null) {
      throw new JspTagException(
                Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
  }

  Object paramValue = null;
  if (value != null) {
      paramValue = value;
  }
  else if (bodyContent != null) {
      paramValue = bodyContent.getString().trim();
      if (((String) paramValue).trim().length() == 0) {
    paramValue = null;
      }
  }

  parent.addSQLParameter(paramValue);
  return EVAL_PAGE;
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    public int doEndTag() throws JspException {
  SQLExecutionTag parent = (SQLExecutionTag)
      findAncestorWithClass(this, SQLExecutionTag.class);
  if (parent == null) {
      throw new JspTagException(
                Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
  }

  Object paramValue = null;
  if (value != null) {
      paramValue = value;
  }
  else if (bodyContent != null) {
      paramValue = bodyContent.getString().trim();
      if (((String) paramValue).trim().length() == 0) {
    paramValue = null;
      }
  }

  parent.addSQLParameter(paramValue);
  return EVAL_PAGE;
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    public void doTag(XMLOutput output) throws Exception {
        SQLExecutionTag parent =
            (SQLExecutionTag) findAncestorWithClass(this, SQLExecutionTag.class);
        if (parent == null) {
            throw new JellyException(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
        }

        if (value != null) {
            convertValue();
        }

        parent.addSQLParameter(value);
    }
View Full Code Here

   
    //*********************************************************************
    // Tag logic

    public void doTag(XMLOutput output) throws Exception {
        SQLExecutionTag parent =
            (SQLExecutionTag) findAncestorWithClass(this, SQLExecutionTag.class);
        if (parent == null) {
            throw new JellyException(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
        }

        Object paramValue = value;
        if (value != null) {
            paramValue = value;
        }
        else {
            String bodyContent = getBodyText();
            if (bodyContent != null) {
                bodyContent = bodyContent.trim();
                if (bodyContent.length() > 0) {
                    paramValue = bodyContent;
                }
            }
        }

        parent.addSQLParameter(paramValue);
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    public int doEndTag() throws JspException {
  SQLExecutionTag parent = (SQLExecutionTag)
      findAncestorWithClass(this, SQLExecutionTag.class);
  if (parent == null) {
      throw new JspTagException(
                Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
  }

        if (value != null) {
            convertValue();
        }

  parent.addSQLParameter(value);
  return EVAL_PAGE;
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    public int doEndTag() throws JspException {
  SQLExecutionTag parent = (SQLExecutionTag)
      findAncestorWithClass(this, SQLExecutionTag.class);
  if (parent == null) {
      throw new JspTagException(
                Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
  }

  Object paramValue = null;
  if (value != null) {
      paramValue = value;
  }
  else if (bodyContent != null) {
      paramValue = bodyContent.getString().trim();
      if (((String) paramValue).trim().length() == 0) {
    paramValue = null;
      }
  }

  parent.addSQLParameter(paramValue);
  return EVAL_PAGE;
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    @Override
    public int doEndTag() throws JspException {
        SQLExecutionTag parent = (SQLExecutionTag)
                findAncestorWithClass(this, SQLExecutionTag.class);
        if (parent == null) {
            throw new JspTagException(
                    Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
        }

        if (value != null) {
            convertValue();
        }

        parent.addSQLParameter(value);
        return EVAL_PAGE;
    }
View Full Code Here

    //*********************************************************************
    // Tag logic

    @Override
    public int doEndTag() throws JspException {
        SQLExecutionTag parent = (SQLExecutionTag)
                findAncestorWithClass(this, SQLExecutionTag.class);
        if (parent == null) {
            throw new JspTagException(
                    Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT"));
        }

        Object paramValue = null;
        if (value != null) {
            paramValue = value;
        } else if (bodyContent != null) {
            paramValue = bodyContent.getString().trim();
            if (((String) paramValue).trim().length() == 0) {
                paramValue = null;
            }
        }

        parent.addSQLParameter(paramValue);
        return EVAL_PAGE;
    }
View Full Code Here

    }

    if (parent == null)
      throw new JspException(L.l("sql:dateParam requires sql:query parent."));

    SQLExecutionTag tag = (SQLExecutionTag) parent;

    tag.addSQLParameter(result);
   
    return SKIP_BODY;
  }
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.jstl.sql.SQLExecutionTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.