tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kin...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Parser.java
Date Wed, 13 Nov 2002 19:50:42 GMT
kinman      2002/11/13 11:50:42

  Modified:    jasper2/src/share/org/apache/jasper/compiler Parser.java
  Log:
  - Add <jsp:element> in the standard systex.
  
  Revision  Changes    Path
  1.39      +16 -3     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Parser.java
  
  Index: Parser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Parser.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- Parser.java	8 Nov 2002 19:42:55 -0000	1.38
  +++ Parser.java	13 Nov 2002 19:50:42 -0000	1.39
  @@ -854,6 +854,16 @@
           parseEmptyBody(doBodyNode, "jsp:doBody");
       }
   
  +    private void parseElement(Node parent) throws JasperException {
  +	Attributes attrs = parseAttributes();
  +	reader.skipSpaces();
  +
  +        Node elementNode = new Node.JspElement(attrs, start, parent);
  +        
  +        parseOptionalBody( elementNode, "jsp:element", 
  +            TagInfo.BODY_CONTENT_JSP );
  +    }
  +
       /*
        * For GetProperty:
        * StdActionContent ::= Attributes EmptyBody
  @@ -1132,6 +1142,7 @@
        *                    | 'setProperty'   StdActionContent
        *                    | 'useBean'       StdActionContent
        *                    | 'plugin'        StdActionContent
  +     *                    | 'element'       StdActionContent
        */
       private void parseAction(Node parent) throws JasperException {
   	Mark start = reader.mark();
  @@ -1162,6 +1173,8 @@
   	    parseUseBean(parent);
   	} else if (reader.matches("plugin")) {
   	    parsePlugin(parent);
  +	} else if (reader.matches("element")) {
  +	    parseElement(parent);
   	} else {
   	    err.jspError(start, "jsp.error.badaction");
   	}
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message