init
This commit is contained in:
26
test/webapp/bug5nnnn/bug50408.jsp
Normal file
26
test/webapp/bug5nnnn/bug50408.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<c:forEach items="${pageContext.response.headerNames}" var="name">
|
||||
<c:forEach items="${pageContext.response.getHeaders(name)}" var="value">
|
||||
<p>${name} : ${value}</p>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</body>
|
||||
</html>
|
||||
26
test/webapp/bug5nnnn/bug51544.jsp
Normal file
26
test/webapp/bug5nnnn/bug51544.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<%@ page import="java.util.Collections" %>
|
||||
<html>
|
||||
<head><title>Bug 51544 test case</title></head>
|
||||
<%
|
||||
pageContext.setAttribute("list",Collections.emptyList());
|
||||
%>
|
||||
<body>
|
||||
<p>Empty list: ${list.isEmpty()}</p>
|
||||
</body>
|
||||
</html>
|
||||
26
test/webapp/bug5nnnn/bug52335.jsp
Normal file
26
test/webapp/bug5nnnn/bug52335.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
|
||||
<html>
|
||||
<head><title>Bug 52335 test case</title></head>
|
||||
<body>
|
||||
<p>00 - \% \\% <\%</p>
|
||||
<p>01 - <b><\%</b></p>
|
||||
<p>02 - <tags:echo echo="Foo" /><\%</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
29
test/webapp/bug5nnnn/bug53465.jsp
Normal file
29
test/webapp/bug5nnnn/bug53465.jsp
Normal file
@@ -0,0 +1,29 @@
|
||||
<%--
|
||||
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 import="javax.naming.Context" %>
|
||||
<%@ page import="javax.naming.InitialContext" %>
|
||||
<head>
|
||||
<body>
|
||||
<%
|
||||
Context initCtx = new InitialContext();
|
||||
Context envCtx = (Context) initCtx.lookup("java:comp/env");
|
||||
Integer test = (Integer) envCtx.lookup("bug53465");
|
||||
|
||||
out.print("<p>" + test.intValue() + "</p>");
|
||||
%>
|
||||
</body>
|
||||
</head>
|
||||
21
test/webapp/bug5nnnn/bug53467].jsp
Normal file
21
test/webapp/bug5nnnn/bug53467].jsp
Normal file
@@ -0,0 +1,21 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<head>
|
||||
<body>
|
||||
<p>OK</p>
|
||||
</body>
|
||||
</head>
|
||||
21
test/webapp/bug5nnnn/bug53545.html
Normal file
21
test/webapp/bug5nnnn/bug53545.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--
|
||||
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>
|
||||
<body>
|
||||
<p>OK</p>
|
||||
</body>
|
||||
</html>
|
||||
34
test/webapp/bug5nnnn/bug53545.jsp
Normal file
34
test/webapp/bug5nnnn/bug53545.jsp
Normal file
@@ -0,0 +1,34 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1"%>
|
||||
<%@ taglib prefix="bug53545" uri="/WEB-INF/bug53545.tld" %>
|
||||
<html>
|
||||
<body>
|
||||
<p>FAIL</p>
|
||||
<bug53545:test>
|
||||
<p>FAIL</p>
|
||||
<bug53545:test>
|
||||
<p>FAIL</p>
|
||||
<jsp:forward page="bug53545.html"/>
|
||||
<p>FAIL</p>
|
||||
</bug53545:test>
|
||||
<p>FAIL</p>
|
||||
</bug53545:test>
|
||||
<p>FAIL</p>
|
||||
</body>
|
||||
</html>
|
||||
22
test/webapp/bug5nnnn/bug53986.jsp
Normal file
22
test/webapp/bug5nnnn/bug53986.jsp
Normal file
@@ -0,0 +1,22 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%--- Test comment ---%>
|
||||
<html>
|
||||
<body>
|
||||
<p>OK</p>
|
||||
</body>
|
||||
</html>
|
||||
25
test/webapp/bug5nnnn/bug54011.jsp
Normal file
25
test/webapp/bug5nnnn/bug54011.jsp
Normal file
@@ -0,0 +1,25 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" session="false"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<p><c:out escapeXml="false" value="OK - 1"/></p>
|
||||
<p><c:out default="OK - 2" value="${request.session}"/></p>
|
||||
</body>
|
||||
</html>
|
||||
24
test/webapp/bug5nnnn/bug54012.jsp
Normal file
24
test/webapp/bug5nnnn/bug54012.jsp
Normal file
@@ -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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" session="false"%>
|
||||
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
|
||||
<html>
|
||||
<body>
|
||||
<tags:bug54012 />
|
||||
</body>
|
||||
</html>
|
||||
35
test/webapp/bug5nnnn/bug54144.jsp
Normal file
35
test/webapp/bug5nnnn/bug54144.jsp
Normal file
@@ -0,0 +1,35 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" session="true"
|
||||
import="java.io.Reader,java.io.StringReader" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<!-- Use of body as default value -->
|
||||
<p><c:out value="${sessionScope.doesNotExist}">OK - 1</c:out></p>
|
||||
<p><c:out value="${sessionScope.doesNotExist}">${'OK - '}${1+1}</c:out></p>
|
||||
<p><c:out value="${'OK - '}${1+1+1}">FAIL</c:out></p>
|
||||
|
||||
<!-- Special handling for Reader objects -->
|
||||
<%
|
||||
Reader r = new StringReader("OK - 4");
|
||||
session.setAttribute("reader", r);
|
||||
%>
|
||||
<p><c:out value="${sessionScope.reader}" /></p>
|
||||
</body>
|
||||
</html>
|
||||
28
test/webapp/bug5nnnn/bug54241a.jsp
Normal file
28
test/webapp/bug5nnnn/bug54241a.jsp
Normal file
@@ -0,0 +1,28 @@
|
||||
<%--
|
||||
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>
|
||||
<body>
|
||||
<%
|
||||
String nullString = null;
|
||||
%>
|
||||
<!-- JspWriter.print(Object obj) is defined to print String.valueOf(obj)
|
||||
which is "null" if obj is null -->
|
||||
<p>01: <%= (Object) null %></p>
|
||||
<!-- JspWriter.print(String) is defined to print null for a null String -->
|
||||
<p>02: <%= nullString %></p>
|
||||
</body>
|
||||
</html>
|
||||
34
test/webapp/bug5nnnn/bug54241b.jsp
Normal file
34
test/webapp/bug5nnnn/bug54241b.jsp
Normal file
@@ -0,0 +1,34 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%!
|
||||
class Bug54241 {
|
||||
public String toString() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
%>
|
||||
<html>
|
||||
<body>
|
||||
<%
|
||||
Bug54241 bug54241 = new Bug54241();
|
||||
%>
|
||||
<!-- JspWriter.print(Object obj) is defined to print String.valueOf(obj)
|
||||
which is obj.toString() if obj is non-null. If obj.toString is null
|
||||
then this will trigger a NullPointerException -->
|
||||
<p>01: <%= bug54241 %></p>
|
||||
</body>
|
||||
</html>
|
||||
29
test/webapp/bug5nnnn/bug54242.jsp
Normal file
29
test/webapp/bug5nnnn/bug54242.jsp
Normal file
@@ -0,0 +1,29 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" session="true"
|
||||
import="java.io.Reader,java.io.StringReader" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<p>OK - 1</p>
|
||||
<c:forEach items="${sessionScope.doesNotExist}" var="foo">
|
||||
<p>FAIL</p>
|
||||
</c:forEach>
|
||||
<p>OK - 2</p>
|
||||
</body>
|
||||
</html>
|
||||
35
test/webapp/bug5nnnn/bug54338.jsp
Normal file
35
test/webapp/bug5nnnn/bug54338.jsp
Normal file
@@ -0,0 +1,35 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%!
|
||||
public class Bug54338 {
|
||||
private int answer;
|
||||
public int getAnswer() { return answer; }
|
||||
public void setAnswer(int answer) { this.answer = answer; }
|
||||
}
|
||||
%>
|
||||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<%
|
||||
pageContext.getSession().setAttribute("foo", new Bug54338());
|
||||
%>
|
||||
<c:set value="42" target="${sessionScope.foo}" property="answer" />
|
||||
<p>OK - <c:out value="${sessionScope.foo.answer}"/></p>
|
||||
</body>
|
||||
</html>
|
||||
23
test/webapp/bug5nnnn/bug54801a.jspx
Normal file
23
test/webapp/bug5nnnn/bug54801a.jspx
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
||||
<jsp:scriptlet><![CDATA[//
|
||||
// ${foo}
|
||||
out.println("Hello, world!!");
|
||||
]]></jsp:scriptlet>
|
||||
</jsp:root>
|
||||
23
test/webapp/bug5nnnn/bug54801b.jspx
Normal file
23
test/webapp/bug5nnnn/bug54801b.jspx
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
||||
<jsp:scriptlet>
|
||||
// ${foo}
|
||||
out.println("Hello, world!!");
|
||||
</jsp:scriptlet>
|
||||
</jsp:root>
|
||||
21
test/webapp/bug5nnnn/bug54821a.jspx
Normal file
21
test/webapp/bug5nnnn/bug54821a.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
||||
<jsp:directive.page isELIgnored="true"/>
|
||||
${Hello, world!!}
|
||||
</jsp:root>
|
||||
21
test/webapp/bug5nnnn/bug54821b.jspx
Normal file
21
test/webapp/bug5nnnn/bug54821b.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
||||
<jsp:directive.page isELIgnored="true"/>
|
||||
${Hello, world!!
|
||||
</jsp:root>
|
||||
27
test/webapp/bug5nnnn/bug54888.jsp
Normal file
27
test/webapp/bug5nnnn/bug54888.jsp
Normal file
@@ -0,0 +1,27 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" session="true"
|
||||
import="java.io.Reader,java.io.StringReader" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<body>
|
||||
<c:forEach items="1,2,3" var="foo">
|
||||
<p>OK - ${foo}</p>
|
||||
</c:forEach>
|
||||
</body>
|
||||
</html>
|
||||
27
test/webapp/bug5nnnn/bug55198.jsp
Normal file
27
test/webapp/bug5nnnn/bug55198.jsp
Normal file
@@ -0,0 +1,27 @@
|
||||
<%--
|
||||
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" %>
|
||||
<%
|
||||
request.setAttribute("text", "a&b");
|
||||
%>
|
||||
<html>
|
||||
<head><title>Bug 55198 test case</title></head>
|
||||
<body>
|
||||
<p><tags:bug55198 /></p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
17
test/webapp/bug5nnnn/bug55262-coda.jspf
Normal file
17
test/webapp/bug5nnnn/bug55262-coda.jspf
Normal file
@@ -0,0 +1,17 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
This is a coda.
|
||||
17
test/webapp/bug5nnnn/bug55262-prelude.jspf
Normal file
17
test/webapp/bug5nnnn/bug55262-prelude.jspf
Normal file
@@ -0,0 +1,17 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
This is a prelude.
|
||||
17
test/webapp/bug5nnnn/bug55262.jsp
Normal file
17
test/webapp/bug5nnnn/bug55262.jsp
Normal file
@@ -0,0 +1,17 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
There should be two preludes before and two codas after this line.
|
||||
21
test/webapp/bug5nnnn/bug55642a.jsp
Normal file
21
test/webapp/bug5nnnn/bug55642a.jsp
Normal file
@@ -0,0 +1,21 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<% request.setAttribute("target","bug55642b.jsp?foo=bar"); %>
|
||||
<jsp:forward page="${requestScope.target}">
|
||||
<jsp:param name="a" value="1"/>
|
||||
<jsp:param name="b" value="2"/>
|
||||
</jsp:forward>
|
||||
18
test/webapp/bug5nnnn/bug55642b.jsp
Normal file
18
test/webapp/bug5nnnn/bug55642b.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<% String qs = request.getQueryString(); %>
|
||||
<p><%= request.getRequestURL() + ( qs == null ? "" : "?" + qs) %>
|
||||
30
test/webapp/bug5nnnn/bug55807.jsp
Normal file
30
test/webapp/bug5nnnn/bug55807.jsp
Normal file
@@ -0,0 +1,30 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1" import="java.util.Map"%>
|
||||
<%@ taglib prefix="bug55807" uri="http://tomcat.apache.org/bug55807" %>
|
||||
<html>
|
||||
<body>
|
||||
<bug55807:Echo echo="OK"/>
|
||||
<p>DependenciesCount: <%=_jspx_dependants.size() %></p>
|
||||
<%
|
||||
for (Map.Entry<String,Long> entry : _jspx_dependants.entrySet()) {
|
||||
out.println("<p>" + entry.getKey() + " : " + entry.getValue() + "</p>");
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
26
test/webapp/bug5nnnn/bug56029.jspx
Normal file
26
test/webapp/bug5nnnn/bug56029.jspx
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
|
||||
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
||||
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
|
||||
<jsp:directive.page contentType="text/html; charset=UTF-8" session="false" />
|
||||
<c:set var="list" value="%=new java.util.ArrayList() %" />
|
||||
<c:set var="limitA" value="${1 + fn:length(list)}" />
|
||||
<c:set var="limitB" value="${1 + fn : length ( list ) }" />
|
||||
[${limitA}]:[${limitB}]
|
||||
</jsp:root>
|
||||
33
test/webapp/bug5nnnn/bug56147.jsp
Normal file
33
test/webapp/bug5nnnn/bug56147.jsp
Normal file
@@ -0,0 +1,33 @@
|
||||
<%--
|
||||
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 language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1"
|
||||
import="java.util.List,java.util.ArrayList,org.apache.el.TesterBeanD"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<html>
|
||||
<%
|
||||
List<Object> list = new ArrayList<>();
|
||||
list.add(new TesterBeanD());
|
||||
pageContext.setAttribute("listItems", list);
|
||||
%>
|
||||
<body>
|
||||
<c:forEach var="item" items="${listItems}">
|
||||
<p>${item.addThing("h")}</p>
|
||||
</c:forEach>
|
||||
<p>00-OK</p>
|
||||
</body>
|
||||
</html>
|
||||
30
test/webapp/bug5nnnn/bug56265.jsp
Normal file
30
test/webapp/bug5nnnn/bug56265.jsp
Normal file
@@ -0,0 +1,30 @@
|
||||
<%--
|
||||
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" %>
|
||||
<%
|
||||
request.setAttribute("text", "World <&>");
|
||||
request.setAttribute("textQuote", "'World <&>'");
|
||||
%>
|
||||
<html>
|
||||
<head><title>Bug 56265 test case</title></head>
|
||||
<body>
|
||||
<p>[1: <tags:bug56265 data-test="window.alert('Hello World <&>!')"/>]</p>
|
||||
<p>[2: <tags:bug56265 data-test="window.alert('Hello ${text}!')"/>]</p>
|
||||
<p>[3: <tags:bug56265 data-test="window.alert('Hello 'World <&>'!')"/>]</p>
|
||||
<p>[4: <tags:bug56265 data-test="window.alert('Hello ${textQuote}!')"/>]</p>
|
||||
</body>
|
||||
</html>
|
||||
68
test/webapp/bug5nnnn/bug56334and56561.jspx
Normal file
68
test/webapp/bug5nnnn/bug56334and56561.jspx
Normal file
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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:root version="2.3"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:jsp="http://java.sun.com/JSP/Page"
|
||||
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
||||
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
|
||||
|
||||
<jsp:directive.page contentType="text/plain; charset=ISO-8859-1"/>
|
||||
|
||||
<!-- Test 1a: Use \\ in EL in tag attribute -->
|
||||
<c:set var="asd1" value="${'01a\\?resize01a'}" />
|
||||
<c:out value="${asd1}"/>
|
||||
|
||||
<c:set var="asd2" value="01b\\x${'\\?resize01b'}" />
|
||||
<c:out value="${asd2}"/>
|
||||
|
||||
<!-- Test 2a: Use \\\\ in template text -->
|
||||
<set data-value="${'02a\\\\?resize02a'}" />
|
||||
|
||||
<!-- Test 2b: Use \\\\ in template text -->
|
||||
<set data-value="02b\\\\x${'\\\\?resize02b'}" />
|
||||
|
||||
<!-- Test 3a: Use \\ in template text -->
|
||||
<set data-value="${'03a\\?resize03a'}" />
|
||||
|
||||
<!-- Test 3b: Use \\ in template text -->
|
||||
<set data-value="03b\\x${'\\?resize03b'}" />
|
||||
|
||||
<!-- Test 4a: Use \\ in jsp:element -->
|
||||
<jsp:element name="${'04a\\?resize04a'}"></jsp:element>
|
||||
|
||||
<jsp:element name="04b\\x${'\\?resize04b'}"></jsp:element>
|
||||
|
||||
<!-- Test 5: Use \$, \# in template text -->
|
||||
<set data-value="05a\$\${&" />
|
||||
<set data-value="05b\$\${&${1+1}" />
|
||||
<set data-value="05c\#\#{>${'hello'}<" />
|
||||
<!-- Test for BZ 56561 -->
|
||||
05x:<set data-value="" />
|
||||
|
||||
<!-- Test 6: nonTaglibXmlnsAttributes on a Node.UninterpretedTag -->
|
||||
<set xmlns:foo="urn:06a\bar\baz" />
|
||||
|
||||
<!-- 7. Tests for bug 56334 comment 15 -->
|
||||
07a:<set data-value="${'\\?resize'}" />
|
||||
07b:<set data-content="${fn:escapeXml('\\?resize=.+')}" />
|
||||
07c:<set data-content="${fn:escapeXml( '\\?resize=.+')}" />
|
||||
07d:<set data-content="${fn:contains(some_value,'\\?resize=.+')}" />
|
||||
07e:<set data-content="${fn:contains(some_value, '\\?resize=.+')}" />
|
||||
07f:<set data-content="${fn:toLowerCase('\\\'someThing\'')}" />
|
||||
07g:<set data-content="${fn:toLowerCase( '\\\'someThing\'')}" />
|
||||
</jsp:root>
|
||||
24
test/webapp/bug5nnnn/bug56529.jsp
Normal file
24
test/webapp/bug5nnnn/bug56529.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<%@ taglib uri="http://tomcat.apache.org/bugs" prefix="bugs" %>
|
||||
[1:<bugs:Bug56529 attribute2="">
|
||||
<jsp:attribute name="attribute1"></jsp:attribute>
|
||||
</bugs:Bug56529>]
|
||||
|
||||
[2:<bugs:Bug56529 attribute2="">
|
||||
<jsp:attribute name="attribute1" />
|
||||
</bugs:Bug56529>]
|
||||
27
test/webapp/bug5nnnn/bug56581.jsp
Normal file
27
test/webapp/bug5nnnn/bug56581.jsp
Normal file
@@ -0,0 +1,27 @@
|
||||
<%--
|
||||
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/plain;charset=ISO-8859-1"
|
||||
%><% for (int i=0; i<1000; i++) {
|
||||
out.print(i);
|
||||
out.print(" Hello world!\n");
|
||||
}
|
||||
if (true) throw new RuntimeException("Oops. Testing exception handling.");
|
||||
for (int i=0; i<1000; i++) {
|
||||
out.print(i);
|
||||
out.print(" Footer");
|
||||
}
|
||||
%>
|
||||
17
test/webapp/bug5nnnn/bug56612.jsp
Normal file
17
test/webapp/bug5nnnn/bug56612.jsp
Normal file
@@ -0,0 +1,17 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<p>00-${'\'\''}</p>
|
||||
26
test/webapp/bug5nnnn/bug57141.jsp
Normal file
26
test/webapp/bug5nnnn/bug57141.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<html>
|
||||
<body>
|
||||
<p>00-${Boolean.TRUE}</p>
|
||||
<p>01-${Boolean.FALSE}</p>
|
||||
<%
|
||||
pageContext.getELContext().getImportHandler().importStatic("java.lang.Integer.MAX_VALUE");
|
||||
%>
|
||||
<p>02-${MAX_VALUE}</p>
|
||||
</body>
|
||||
</html>
|
||||
24
test/webapp/bug5nnnn/bug57142.jsp
Normal file
24
test/webapp/bug5nnnn/bug57142.jsp
Normal file
@@ -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 import="java.math.*, java.util.Collections" %>
|
||||
<html>
|
||||
<body>
|
||||
<p>00-${DispatcherType.ASYNC}</p>
|
||||
<p>01-${RoundingMode.HALF_UP}</p>
|
||||
<p>02-${Collections.EMPTY_LIST.stream().count()}</p>
|
||||
</body>
|
||||
</html>
|
||||
22
test/webapp/bug5nnnn/bug57441.jsp
Normal file
22
test/webapp/bug5nnnn/bug57441.jsp
Normal file
@@ -0,0 +1,22 @@
|
||||
<%--
|
||||
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 import="java.math.*, java.util.Collections" %>
|
||||
<html>
|
||||
<body>
|
||||
<p>00-${incr = x->x+1; incr(10)}</p>
|
||||
</body>
|
||||
</html>
|
||||
18
test/webapp/bug5nnnn/bug57601.jsp
Normal file
18
test/webapp/bug5nnnn/bug57601.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
Outer
|
||||
<jsp:include page="bug57601.txt"/>
|
||||
16
test/webapp/bug5nnnn/bug57601.txt
Normal file
16
test/webapp/bug5nnnn/bug57601.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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.
|
||||
|
||||
Inner
|
||||
17
test/webapp/bug5nnnn/bug58096.jsp
Normal file
17
test/webapp/bug5nnnn/bug58096.jsp
Normal file
@@ -0,0 +1,17 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%= org.apache.tomcat.Bug58096.class.getProtectionDomain().getCodeSource().getLocation() %>
|
||||
30
test/webapp/bug5nnnn/bug58178.jsp
Normal file
30
test/webapp/bug5nnnn/bug58178.jsp
Normal file
@@ -0,0 +1,30 @@
|
||||
<%--
|
||||
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://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>Catch Tag Example</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<tags:bug58178>
|
||||
<fmt:parseNumber var="parsedNum" value="aaa" />
|
||||
</tags:bug58178>
|
||||
Parsed value: <c:out value="${parsedNum}"/>
|
||||
</html>
|
||||
21
test/webapp/bug5nnnn/bug58178b.jsp
Normal file
21
test/webapp/bug5nnnn/bug58178b.jsp
Normal file
@@ -0,0 +1,21 @@
|
||||
<%--
|
||||
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>
|
||||
<body>
|
||||
<tags:bug58178b />
|
||||
</html>
|
||||
65
test/webapp/bug5nnnn/bug58178c.jsp
Normal file
65
test/webapp/bug5nnnn/bug58178c.jsp
Normal file
@@ -0,0 +1,65 @@
|
||||
<%--
|
||||
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" %>
|
||||
<%!
|
||||
static class TestListener implements javax.el.ELContextListener {
|
||||
|
||||
private int jspCount = 0;
|
||||
private int tagCount = 0;
|
||||
|
||||
@Override
|
||||
public void contextCreated(javax.el.ELContextEvent event) {
|
||||
javax.el.ELContext elContext = event.getELContext();
|
||||
if (elContext instanceof org.apache.jasper.el.ELContextImpl) {
|
||||
jspCount++;
|
||||
} else {
|
||||
tagCount++;
|
||||
}
|
||||
(new Exception()).printStackTrace();
|
||||
}
|
||||
|
||||
public int getJspCount() {
|
||||
return jspCount;
|
||||
}
|
||||
|
||||
public int getTagCount() {
|
||||
return tagCount;
|
||||
}
|
||||
}
|
||||
|
||||
static TestListener listener = new TestListener();
|
||||
|
||||
private boolean listenerAdded;
|
||||
%>
|
||||
<%
|
||||
synchronized(this) {
|
||||
if (!listenerAdded) {
|
||||
JspFactory factory = JspFactory.getDefaultFactory();
|
||||
JspApplicationContext jspApplicationContext = factory.getJspApplicationContext(application);
|
||||
jspApplicationContext.addELContextListener(listener);
|
||||
listenerAdded = true;
|
||||
}
|
||||
}
|
||||
%>
|
||||
<html>
|
||||
<body>
|
||||
<p>JSP count: <%= listener.getJspCount() %></p>
|
||||
<p>Tag count: <%= listener.getTagCount() %></p>
|
||||
<tags:bug58178b />
|
||||
<p>JSP count: <%= listener.getJspCount() %></p>
|
||||
<p>Tag count: <%= listener.getTagCount() %></p>
|
||||
</html>
|
||||
23
test/webapp/bug5nnnn/bug58444.jsp
Normal file
23
test/webapp/bug5nnnn/bug58444.jsp
Normal file
@@ -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.
|
||||
--%>
|
||||
<%@ page extends="org.apache.jasper.runtime.TesterHttpJspBase" %>
|
||||
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
|
||||
<html>
|
||||
<body>
|
||||
<tags:echo echo="00-PASS" />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user