Examples of JspToJavaException


Examples of com.rimfaxe.webserver.compiler.JspToJavaException

  reader.skipSpaces();

  if (!reader.matches("/>"))
        {
     
            throw new JspToJavaException(reader.mark(), "Unterminated getProperty","<jsp:getProperty");
  }

  new Node.GetProperty(attrs, start, parent);
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

  Attributes attrs = parseAttributes();
  reader.skipSpaces();

  if (!reader.matches("/>"))
        {
            throw new JspToJavaException(reader.mark(), "Unterminated setProperty","<jsp:setProperty");
     
  }

  new Node.SetProperty(attrs, start, parent);
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

      return;
  }

  if (!reader.matches(">"))
        {
            throw new JspToJavaException(reader.mark(), "Unterminated useBean","<jsp:useBean");
     
  }

  Node beanNode = new Node.UseBean(attrs, start, parent);
  parseBody(beanNode, "jsp:useBean");
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

    {

  reader.skipSpaces();
  if (!reader.matches(">"))
        {
            throw new JspToJavaException(reader.mark(), "Params not closed");
    
  }

  reader.skipSpaces();
  Node jspParamsNode = new Node.ParamsAction(start, parent);
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

    {

  reader.skipSpaces();
  if (!reader.matches(">"))
        {
            throw new JspToJavaException(reader.mark(), "Fallback not closed");
     
  }

  Mark bodyStart = reader.mark();
        Mark bodyEnd = reader.skipUntilETag("jsp:fallback");
        if (bodyEnd == null)
        {
            throw new JspToJavaException(reader.mark(), "Unterminated fallback","<jsp:fallback");
           
  }
  char[] text = reader.getText(bodyStart, bodyEnd);
        new Node.FallBackAction(start, text, parent);
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

  Attributes attrs = parseAttributes();
  reader.skipSpaces();

  if (!reader.matches(">"))
        {
            throw new JspToJavaException(reader.mark(), "Plugin not closed");
     
  }

  reader.skipSpaces();
  Node pluginNode = new Node.PlugIn(attrs, start, parent);
  if (reader.matches("<jsp:params"))
        {
      parseJspParams(pluginNode);
      reader.skipSpaces();
  }

  if (reader.matches("<jsp:fallback")) {
      parseFallBack(pluginNode);
      reader.skipSpaces();
  }

  if (!reader.matchesETag("jsp:plugin"))
        {
            throw new JspToJavaException(reader.mark(), "Plugin not closed");
     
  }
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

        {
      parsePlugin(parent);
  }
        else
        {
            throw new JspToJavaException(start, "Bad action");
     
  }
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

      return false;
  }
  TagInfo tagInfo = tagLibInfo.getTag(shortTagName);
  if (tagInfo == null)
        {
            throw new JspToJavaException(start, "Bad tag : "+shortTagName, prefix);
     
  }

  // EmptyElemTag ::= '<' Name ( #S Attribute )* S? '/>'
  // or Stag ::= '<' Name ( #S Attribute)* S? '>'
  Attributes attrs = parseAttributes();
  reader.skipSpaces();
 
  if (reader.matches("/>")) {
      // EmptyElemTag ::= '<' Name ( S Attribute )* S? '/>'#
      new Node.CustomTag(attrs, start, tagName, prefix, shortTagName,
             tagInfo, parent);
      return true;
  }
 
  if (!reader.matches(">"))
        {
            throw new JspToJavaException(start, "Unterminated tag");
     
  }

  // ActionElement ::= Stag #Body Etag
 
  // Looking for a body, it still can be empty; but if there is a
  // a tag body, its syntax would be dependent on the type of
  // body content declared in TLD.
  String bc = tagInfo.getBodyContent();

  Node tagNode = new Node.CustomTag(attrs, start, tagName, prefix,
            shortTagName, tagInfo, parent);
  // There are 3 body content types: empty, jsp, or tag-dependent.
  if (bc.equalsIgnoreCase(TagInfo.BODY_CONTENT_EMPTY))
        {
      if (!reader.matchesETag(tagName))
            {
                throw new JspToJavaException(start, "empty body content is nonempty");
   
      }
  }
        else if (bc.equalsIgnoreCase(TagInfo.BODY_CONTENT_TAG_DEPENDENT))
        {
      // parse the body as text
      parseBodyText(tagNode, tagName);
  }
        else if (bc.equalsIgnoreCase(TagInfo.BODY_CONTENT_JSP))
        {
      // parse body as JSP page
      parseBody(tagNode, tagName);
  }
        else
        {
            throw new JspToJavaException(start, "Bad content type");
     
  }

  return true;
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

  Mark bodyStart = reader.mark();
  Mark bodyEnd = reader.skipUntilETag(tag);

        if (bodyEnd == null)
        {
            throw new JspToJavaException(start, "Unterminated tag", "<"+tag+">");
     
  }
  new Node.TemplateText(reader.getText(bodyStart, bodyEnd), bodyStart,parent);
    }
View Full Code Here

Examples of com.rimfaxe.webserver.compiler.JspToJavaException

            {
    return;
      }
      parseElements(parent);
  }
        throw new JspToJavaException(start, "Unterminated tag", "<"+tag+">");
 
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.