Re-organise tests for bugs 49nnn
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Nov 2010 15:11:25 +0000 (15:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Nov 2010 15:11:25 +0000 (15:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1034416 13f79535-47bb-0310-9956-ffa450edef68

21 files changed:
test/javax/servlet/jsp/TestPageContext.java
test/org/apache/el/TestELInJsp.java
test/org/apache/jasper/compiler/TestCompiler.java
test/org/apache/jasper/compiler/TestGenerator.java
test/org/apache/jasper/compiler/TestParser.java
test/org/apache/jasper/compiler/TestParserNoStrictWhitespace.java
test/webapp-3.0/WEB-INF/web.xml
test/webapp-3.0/bug49196.jsp [deleted file]
test/webapp-3.0/bug49297DuplicateAttr.jsp [deleted file]
test/webapp-3.0/bug49297NoSpace.jsp [deleted file]
test/webapp-3.0/bug49555.jsp [deleted file]
test/webapp-3.0/bug49726a.jsp [deleted file]
test/webapp-3.0/bug49726b.jsp [deleted file]
test/webapp-3.0/bug49799.jsp [deleted file]
test/webapp-3.0/bug49nnn/bug49196.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49297DuplicateAttr.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49297NoSpace.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49555.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49726a.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49726b.jsp [new file with mode: 0644]
test/webapp-3.0/bug49nnn/bug49799.jsp [new file with mode: 0644]

index 961234c..17b31aa 100644 (file)
@@ -35,7 +35,7 @@ public class TestPageContext extends TomcatBaseTest {
         tomcat.start();
 
         ByteChunk res = getUrl("http://localhost:" + getPort() +
-                "/test/bug49196.jsp");
+                "/test/bug49nnn/bug49196.jsp");
         
         String result = res.toString();
         assertTrue(result.contains("OK"));
index 558b53d..51bc8ed 100644 (file)
@@ -319,7 +319,7 @@ public class TestELInJsp extends TomcatBaseTest {
         tomcat.start();
 
         ByteChunk res = getUrl("http://localhost:" + getPort() +
-                "/test/bug49555.jsp");
+                "/test/bug49nnn/bug49555.jsp");
         
         String result = res.toString();
         assertEcho(result, "00-" + TesterFunctions.Inner$Class.RETVAL);
index e9d01f6..c3324c2 100644 (file)
@@ -38,8 +38,8 @@ public class TestCompiler extends TomcatBaseTest {
         ByteChunk res = new ByteChunk();
         Map<String,List<String>> headers = new HashMap<String,List<String>>();
         
-        getUrl("http://localhost:" + getPort() + "/test/bug49726a.jsp", res,
-                headers);
+        getUrl("http://localhost:" + getPort() + "/test/bug49nnn/bug49726a.jsp",
+                res, headers);
 
         // Check request completed
         String result = res.toString();
@@ -59,8 +59,8 @@ public class TestCompiler extends TomcatBaseTest {
         ByteChunk res = new ByteChunk();
         Map<String,List<String>> headers = new HashMap<String,List<String>>();
         
-        getUrl("http://localhost:" + getPort() + "/test/bug49726b.jsp", res,
-                headers);
+        getUrl("http://localhost:" + getPort() + "/test/bug49nnn/bug49726b.jsp",
+                res, headers);
 
         // Check request completed
         String result = res.toString();
index ccd5414..8478e7e 100644 (file)
@@ -218,8 +218,8 @@ public class TestGenerator extends TomcatBaseTest {
         ByteChunk res = new ByteChunk();
         Map<String,List<String>> headers = new HashMap<String,List<String>>();
         
-        getUrl("http://localhost:" + getPort() + "/test/bug49799.jsp", res,
-                headers);
+        getUrl("http://localhost:" + getPort() + "/test/bug49nnn/bug49799.jsp",
+                res, headers);
 
         // Check request completed
         String result = res.toString();
index 145c260..5fcd170 100644 (file)
@@ -122,7 +122,7 @@ public class TestParser extends TomcatBaseTest {
         tomcat.start();
 
         int sc = getUrl("http://localhost:" + getPort() +
-                "/test/bug49297NoSpace.jsp", new ByteChunk(),
+                "/test/bug49nnn/bug49297NoSpace.jsp", new ByteChunk(),
                 new HashMap<String,List<String>>());
 
         assertEquals(500, sc);
@@ -138,7 +138,7 @@ public class TestParser extends TomcatBaseTest {
         tomcat.start();
 
         int sc = getUrl("http://localhost:" + getPort() +
-                "/test/bug49297DuplicateAttr.jsp", new ByteChunk(),
+                "/test/bug49nnn/bug49297DuplicateAttr.jsp", new ByteChunk(),
                 new HashMap<String,List<String>>());
 
         assertEquals(500, sc);
index b1bba1f..f46d776 100644 (file)
@@ -132,7 +132,7 @@ public class TestParserNoStrictWhitespace extends TomcatBaseTest {
 
         ByteChunk res = new ByteChunk();
         int sc = getUrl("http://localhost:" + getPort() +
-                "/test/bug49297NoSpace.jsp", res,
+                "/test/bug49nnn/bug49297NoSpace.jsp", res,
                 new HashMap<String,List<String>>());
 
 
@@ -150,7 +150,7 @@ public class TestParserNoStrictWhitespace extends TomcatBaseTest {
         tomcat.start();
 
         int sc = getUrl("http://localhost:" + getPort() +
-                "/test/bug49297DuplicateAttr.jsp", new ByteChunk(),
+                "/test/bug49nnn/bug49297DuplicateAttr.jsp", new ByteChunk(),
                 new HashMap<String,List<String>>());
 
         assertEquals(500, sc);
index 71ae7d9..634d390 100644 (file)
@@ -99,8 +99,8 @@
   <jsp-config>
     <jsp-property-group>
       <default-content-type>text/plain</default-content-type>
-      <url-pattern>/bug49726a.jsp</url-pattern>
-      <url-pattern>/bug49726b.jsp</url-pattern>
+      <url-pattern>/bug49nnn/bug49726a.jsp</url-pattern>
+      <url-pattern>/bug49nnn/bug49726b.jsp</url-pattern>
     </jsp-property-group>
   </jsp-config>
 </web-app>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49196.jsp b/test/webapp-3.0/bug49196.jsp
deleted file mode 100644 (file)
index 9797a94..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%
-// As nonsensical as this is, it shouldn't throw an NPE
-pageContext.getErrorData();
-%>
-<html>
-  <head><title>Bug 49196 test case</title></head>
-  <body>
-    <p>OK</p>
-  </body>
-</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49297DuplicateAttr.jsp b/test/webapp-3.0/bug49297DuplicateAttr.jsp
deleted file mode 100644 (file)
index 9790c80..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
-<html>
-  <head><title>Bug 49297 duplicate attribute test case</title></head>
-  <body>
-    <tags:echo echo="Hello World" echo="error"/>
-  </body>
-</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49297NoSpace.jsp b/test/webapp-3.0/bug49297NoSpace.jsp
deleted file mode 100644 (file)
index 5a857c3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
-<html>
-  <head><title>Bug 49297 whitespace test case</title></head>
-  <body>
-    <tags:echo echo="Hello World"dummy="ignored"/>
-  </body>
-</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49555.jsp b/test/webapp-3.0/bug49555.jsp
deleted file mode 100644 (file)
index de65fe9..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%@ taglib uri="http://tomcat.apache.org/bugs" prefix="bugs" %>
-<p>00-${bugs:bug49555()}</p>
diff --git a/test/webapp-3.0/bug49726a.jsp b/test/webapp-3.0/bug49726a.jsp
deleted file mode 100644 (file)
index a9e177b..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%@ page contentType="text/html"%>
-<html>
-  <head><title>Bug 49726 test case</title></head>
-  <body>
-    <p>OK</p>
-  </body>
-</html>
-
diff --git a/test/webapp-3.0/bug49726b.jsp b/test/webapp-3.0/bug49726b.jsp
deleted file mode 100644 (file)
index eaf7737..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<html>
-  <head><title>Bug 49726 test case</title></head>
-  <body>
-    <p>OK</p>
-  </body>
-</html>
-
diff --git a/test/webapp-3.0/bug49799.jsp b/test/webapp-3.0/bug49799.jsp
deleted file mode 100644 (file)
index 8fd39db..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="false">color:red</jsp:attribute>
-  <jsp:body>00-Red</jsp:body>
-</jsp:element>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="true">color:red</jsp:attribute>
-  <jsp:body>01-Not Red</jsp:body>
-</jsp:element>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="${false}">color:red</jsp:attribute>
-  <jsp:body>02-Red</jsp:body>
-</jsp:element>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="${true}">color:red</jsp:attribute>
-  <jsp:body>03-Not Red</jsp:body>
-</jsp:element>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="<%=(1==2)%>">color:red</jsp:attribute>
-  <jsp:body>04-Red</jsp:body>
-</jsp:element>
-<jsp:element name="p">
-  <jsp:attribute name="style" omit="<%=(1==1)%>">color:red</jsp:attribute>
-  <jsp:body>05-Not Red</jsp:body>
-</jsp:element>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49nnn/bug49196.jsp b/test/webapp-3.0/bug49nnn/bug49196.jsp
new file mode 100644 (file)
index 0000000..9797a94
--- /dev/null
@@ -0,0 +1,26 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%
+// As nonsensical as this is, it shouldn't throw an NPE
+pageContext.getErrorData();
+%>
+<html>
+  <head><title>Bug 49196 test case</title></head>
+  <body>
+    <p>OK</p>
+  </body>
+</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49nnn/bug49297DuplicateAttr.jsp b/test/webapp-3.0/bug49nnn/bug49297DuplicateAttr.jsp
new file mode 100644 (file)
index 0000000..9790c80
--- /dev/null
@@ -0,0 +1,23 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+  <head><title>Bug 49297 duplicate attribute test case</title></head>
+  <body>
+    <tags:echo echo="Hello World" echo="error"/>
+  </body>
+</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49nnn/bug49297NoSpace.jsp b/test/webapp-3.0/bug49nnn/bug49297NoSpace.jsp
new file mode 100644 (file)
index 0000000..5a857c3
--- /dev/null
@@ -0,0 +1,23 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+  <head><title>Bug 49297 whitespace test case</title></head>
+  <body>
+    <tags:echo echo="Hello World"dummy="ignored"/>
+  </body>
+</html>
\ No newline at end of file
diff --git a/test/webapp-3.0/bug49nnn/bug49555.jsp b/test/webapp-3.0/bug49nnn/bug49555.jsp
new file mode 100644 (file)
index 0000000..de65fe9
--- /dev/null
@@ -0,0 +1,18 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ taglib uri="http://tomcat.apache.org/bugs" prefix="bugs" %>
+<p>00-${bugs:bug49555()}</p>
diff --git a/test/webapp-3.0/bug49nnn/bug49726a.jsp b/test/webapp-3.0/bug49nnn/bug49726a.jsp
new file mode 100644 (file)
index 0000000..a9e177b
--- /dev/null
@@ -0,0 +1,24 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page contentType="text/html"%>
+<html>
+  <head><title>Bug 49726 test case</title></head>
+  <body>
+    <p>OK</p>
+  </body>
+</html>
+
diff --git a/test/webapp-3.0/bug49nnn/bug49726b.jsp b/test/webapp-3.0/bug49nnn/bug49726b.jsp
new file mode 100644 (file)
index 0000000..eaf7737
--- /dev/null
@@ -0,0 +1,23 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 49726 test case</title></head>
+  <body>
+    <p>OK</p>
+  </body>
+</html>
+
diff --git a/test/webapp-3.0/bug49nnn/bug49799.jsp b/test/webapp-3.0/bug49nnn/bug49799.jsp
new file mode 100644 (file)
index 0000000..8fd39db
--- /dev/null
@@ -0,0 +1,40 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="false">color:red</jsp:attribute>
+  <jsp:body>00-Red</jsp:body>
+</jsp:element>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="true">color:red</jsp:attribute>
+  <jsp:body>01-Not Red</jsp:body>
+</jsp:element>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="${false}">color:red</jsp:attribute>
+  <jsp:body>02-Red</jsp:body>
+</jsp:element>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="${true}">color:red</jsp:attribute>
+  <jsp:body>03-Not Red</jsp:body>
+</jsp:element>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="<%=(1==2)%>">color:red</jsp:attribute>
+  <jsp:body>04-Red</jsp:body>
+</jsp:element>
+<jsp:element name="p">
+  <jsp:attribute name="style" omit="<%=(1==1)%>">color:red</jsp:attribute>
+  <jsp:body>05-Not Red</jsp:body>
+</jsp:element>
\ No newline at end of file