Package com.caucho.jsp

Examples of com.caucho.jsp.PageContextImpl$PageELContext


   * Process the tag.
   */
  public int doStartTag()
    throws JspException
  {
    PageContextImpl pc = (PageContextImpl) pageContext;

    TimeZone timeZone = null;

    if (_value instanceof TimeZone) {
      timeZone = (TimeZone) _value;
View Full Code Here


   */
  public int doEndTag()
    throws JspException
  {
    try {
      PageContextImpl pc = (PageContextImpl) pageContext;
     
      JspWriter out = pc.getOut();

      String string = null;

      if (_value != null)
        string = _value;
View Full Code Here

  }

  protected DateFormat getFormat()
    throws JspException
  {
    PageContextImpl pc = (PageContextImpl) pageContext;
   
    DateFormat format = null;
    Locale locale = null;

    if (_parseLocale != null) {
      Object localeObj = _parseLocale;

      if (localeObj instanceof Locale)
        locale = (Locale) localeObj;
      else if (localeObj instanceof String)
        locale = pc.getLocale((String) localeObj, null);
    }
   
    if (locale == null)
      locale = pc.getLocale();

    int dateStyle = DateFormat.DEFAULT;
    if (_dateStyle != null)
      dateStyle = getDateStyle(_dateStyle);
View Full Code Here

  }

  public int doEndTag() throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
      BodyContentImpl body = (BodyContentImpl) getBodyContent();

      XMLReader xmlReader = null;
      Reader reader = null;
      InputSource is;
View Full Code Here

    throws JspException
  {
    if (! _hasValueSet)
      return EVAL_BODY_BUFFERED;

    PageContextImpl pageContext = (PageContextImpl) this.pageContext;
   
    Object value = _value;

    Tag parent = getParent();
    for (;
View Full Code Here

   */
  public int doStartTag()
    throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
     
      JspWriter out = pageContext.getOut();

      if (_value != null) {
        if (_escapeXml)
          Expr.toStreamEscaped(out, _value);
        else
View Full Code Here

  }

  public int doEndTag() throws JspException
  {
    try {
      PageContextImpl pageContext = (PageContextImpl) this.pageContext;
     
      JspWriter out = pageContext.getOut();
     
      BodyContentImpl body = (BodyContentImpl) getBodyContent();

      if (body != null) {
        String s = body.getString().trim();
View Full Code Here

  public int doEndTag() throws JspException
  {
    Connection conn = null;
    boolean isTransaction = false;
    PageContextImpl pageContext = (PageContextImpl) this.pageContext;
   
    String sql = null;

    try {
      if (_sql != null)
        sql = _sql;
      else
        sql = bodyContent.getString();

      conn = (Connection) pageContext.getAttribute("caucho.jstl.sql.conn");
      if (conn != null)
        isTransaction = true;

      if (! isTransaction) {
        conn = SqlQueryTag.getConnection(pageContext, _dataSource);
View Full Code Here

   */
  public int doEndTag()
    throws JspException
  {
    try {
      PageContextImpl pc = (PageContextImpl) pageContext;
     
      JspWriter out = pc.getOut();

      if (_value == null) {
        if (_var != null)
          CoreSetTag.setValue(pageContext, _var, _scope, null);
     
        return EVAL_PAGE;
      }

      long time = _value.getTime();
     
      DateFormat format = null;

      Locale locale = pc.getLocale();

      int dateStyle = DateFormat.DEFAULT;
      if (_dateStyle != null)
        dateStyle = getDateStyle(_dateStyle);

View Full Code Here

   * Process the tag.
   */
  public int doStartTag()
    throws JspException
  {
    PageContextImpl pc = (PageContextImpl) pageContext;

    LocalizationContext bundle = pc.getBundle(_basename);

    if (_scope == null || _scope.equals("") || _scope.equals("page"))
      pc.setAttribute(_var, bundle);
    else if (_scope.equals("request"))
      pc.getRequest().setAttribute(_var, bundle);
    else if (_scope.equals("session"))
      pc.getSession().setAttribute(_var, bundle);
    else if (_scope.equals("application"))
      pc.getServletContext().setAttribute(_var, bundle);
    else
      throw new JspException(L.l("unknown scope `{0}' in fmt:setBundle",
                                 _scope));

    Locale locale = bundle.getLocale();
View Full Code Here

TOP

Related Classes of com.caucho.jsp.PageContextImpl$PageELContext

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.