This commit is contained in:
2024-11-30 19:03:49 +08:00
commit 1e6763c160
3806 changed files with 737676 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?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.
-->
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>bug53545</short-name>
<tag>
<name>test</name>
<tag-class>org.apache.tomcat.unittest.tags.Bug53545</tag-class>
<body-content>scriptless</body-content>
</tag>
</taglib>

View File

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
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 xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>BugTags</short-name>
<uri>http://tomcat.apache.org/bugs</uri>
<tag>
<name>Bug46816a</name>
<tag-class>org.apache.jasper.compiler.TestScriptingVariabler$Bug48616aTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>Bug48616b</name>
<tag-class>org.apache.jasper.compiler.TestScriptingVariabler$Bug48616bTag</tag-class>
<tei-class>org.apache.jasper.compiler.TestScriptingVariabler$Bug48616bTei</tei-class>
<body-content>JSP</body-content>
</tag>
<tag>
<name>Bug48701a</name>
<tag-class>org.apache.jasper.compiler.TestGenerator$Bug48701</tag-class>
<tei-class>org.apache.jasper.compiler.TestGenerator$Bug48701TEI</tei-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>Bug48701b</name>
<tag-class>org.apache.jasper.compiler.TestGenerator$Bug48701</tag-class>
<body-content>empty</body-content>
<variable>
<name-given>now</name-given>
<variable-class>org.apache.jasper.compiler.TestGenerator.Bean</variable-class>
<scope>AT_END</scope>
</variable>
</tag>
<tag>
<name>Bug48701c</name>
<tag-class>org.apache.jasper.compiler.TestGenerator$Bug48701</tag-class>
<body-content>empty</body-content>
<attribute>
<name>beanName</name>
<type>java.lang.String</type>
</attribute>
<variable>
<name-from-attribute>beanName</name-from-attribute>
<variable-class>org.apache.jasper.compiler.TestGenerator.Bean</variable-class>
<scope>AT_END</scope>
</variable>
</tag>
<tag>
<name>Bug56529</name>
<tag-class>org.apache.jasper.compiler.TestGenerator$Bug56529</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>attribute1</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attribute2</name>
<required>true</required>
</attribute>
</tag>
<function>
<name>bug49555</name>
<function-class>org.apache.el.TesterFunctions$Inner$Class</function-class>
<function-signature>java.lang.String bug49555()</function-signature>
</function>
</taglib>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
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.
--><!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>Tags11</shortname>
<uri>http://tomcat.apache.org/bug55807</uri>
<tag>
<name>Echo</name>
<tagclass>org.apache.jasper.compiler.TestValidator$Echo</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>echo</name>
<required>yes</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

View 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.
-->
<tag-plugins>
<tag-plugin>
<tag-class>org.apache.jasper.compiler.TesterTag</tag-class>
<plugin-class>org.apache.jasper.compiler.TesterTagPlugin</plugin-class>
</tag-plugin>
</tag-plugins>

View 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.
*/
package org.apache.tomcat;
/**
* Contains no functionality since it is only used to test the code source
* assigned to the class.
*/
public class Bug58096 {
}

View 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>

View 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 session="false" %>
<html>
<body>
<p>ERROR</p>
</body>
</html>

Binary file not shown.

View 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.
--%>
<%@ variable name-given="X" scope="AT_END" %>
<jsp:doBody/>

View 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">
<jsp:directive.tag body-content="scriptless" />
<jsp:directive.attribute name="expr" type="java.lang.String" rtexprvalue="true"/>
<jsp:directive.attribute name="noexpr" type="java.lang.String" rtexprvalue="false"/>
<jsp:directive.attribute name="fragment" fragment="true" />
<jsp:text>${expr}${noexpr}</jsp:text>
<jsp:invoke fragment="fragment" />
<jsp:doBody />
</jsp:root>

View 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.
--%><%@ tag import="java.util.List" import="java.util.ArrayList"%><%@
tag body-content="empty" %><%
// Make sure the imports above do work
List<String> l = new ArrayList<String>();
l.add("OK");
%><p><%=l.get(0)%></p>

View File

@@ -0,0 +1,20 @@
<%--
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.
--%><%@ tag %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ tag body-content="empty" %>
<c:set var="test" value="OK" />
<p><c:out value="${test}"/></p>

View 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">
<jsp:directive.tag body-content="scriptless" />
<a href="#" onclick="window.alert(&quot;1${'foo'}1&lt;&amp;&gt;&quot;)">foo</a>
<a href="#" onclick="window.alert(&quot;2bar2&lt;&amp;&gt;&quot;)">bar</a>
<a href="#" onclick="window.alert(&quot;3${text}3&quot;)">foo</a>
<a href="#" onclick="window.alert(&quot;4${'&amp;'}4&quot;)">foo</a>
<a href="#" onclick="window.alert(&quot;5${'&amp;apos;'}5&quot;)">foo</a>
<jsp:doBody />
</jsp:root>

View File

@@ -0,0 +1,24 @@
<?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">
<jsp:directive.tag body-content="empty" dynamic-attributes="attMap" />
<c:forEach var="e" items="${attMap}">
<jsp:text>[${e.key}]: [${e.value}]</jsp:text>
</c:forEach>
</jsp:root>

View File

@@ -0,0 +1,32 @@
<%--
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="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:catch var="error">
<jsp:doBody/>
</c:catch>
<c:if test="${error != null}">
<p>PASS<br/>
Error detected<br/>
The exception is : ${error} <br />
The message is: ${error.message}</p>
</c:if>
<c:if test="${error == null}">
<p>FAIL<br/>
Error not detected</p>
</c:if>

View File

@@ -0,0 +1,20 @@
<%--
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.
--%>
<%@tag import="java.math.*, java.util.Collections" %>
<p>00-${DispatcherType.ASYNC}</p>
<p>01-${RoundingMode.HALF_UP}</p>
<p>02-${Collections.EMPTY_LIST.stream().count()}</p>

View 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="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="foo" required="true" %>
<%@ attribute name="bar" %>
<%@ attribute name="baz" %>
<div>
<div>foo: ${foo.toString()}</div>
<div>bar: ${bar.toString()}</div>
<div>baz: ${baz.toString()}</div>
</div>

View 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.
--%><%@ tag %><%@ attribute name="echo" deferredValue="true" %><%@
tag body-content="empty" %><p>${echo}</p>

View File

@@ -0,0 +1,20 @@
<%--
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.
--%>
<%@ tag %><%@
attribute name="echo" type="java.lang.Double"%><%@
attribute name="index" type="java.lang.String" %><%@
tag body-content="empty" %><p>${index}-${echo}</p>

View File

@@ -0,0 +1,20 @@
<%--
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.
--%>
<%@ tag %><%@
attribute name="echo" type="java.lang.Long"%><%@
attribute name="index" type="java.lang.String" %><%@
tag body-content="empty" %><p>${index}-${echo}</p>

View File

@@ -0,0 +1,19 @@
<%--
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.
--%>
<%@ tag%><%@
attribute name="echo" type="java.lang.String" rtexprvalue="false"
%><%@ tag body-content="empty" %><p>${echo}</p>

View File

@@ -0,0 +1,19 @@
<%--
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.
--%><%@ tag %><%@
attribute name="echo" type="java.lang.String"%><%@
attribute name="dummy" type="java.lang.String" required="false"%><%@
tag body-content="empty" %><p>${echo}</p>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
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 xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
</taglib>

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
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 xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>TesterFunctions</short-name>
<uri>http://tomcat.apache.org/testerFunctions</uri>
<function>
<name>trim</name>
<function-class>org.apache.el.TesterFunctions</function-class>
<function-signature>
java.lang.String trim(java.lang.String)
</function-signature>
</function>
<function>
<name>concat</name>
<function-class>org.apache.el.TesterFunctions</function-class>
<function-signature>
java.lang.String concat(java.lang.String[])
</function-signature>
</function>
<function>
<name>toArray</name>
<function-class>org.apache.el.TesterFunctions</function-class>
<!-- Do not change whitespace in signature below. It is used to test for
correctness in o.a.jasper.compiler.Validator. -->
<function-signature>
java.lang.String toArray(java.lang.String,
java.lang.String)
</function-signature>
</function>
<function>
<name>toArrayB</name>
<function-class>org.apache.el.TesterFunctions</function-class>
<!-- Do not change whitespace in signature below. It is used to test for
correctness in o.a.jasper.compiler.Validator. -->
<function-signature>
java.lang.String toArray (java.lang.String,java.lang.String)
</function-signature>
</function>
</taglib>

174
test/webapp/WEB-INF/web.xml Normal file
View File

@@ -0,0 +1,174 @@
<?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.
-->
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete="true">
<display-name>Tomcat Test Application</display-name>
<description>
Used as part of the Tomcat unit tests when a full web application is
required.
</description>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<!-- Required by /jsp/tagFileInJar.jsp / TestJspCompilationContext -->
<init-param>
<param-name>modificationTestInterval</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<!-- Bug 49922 -->
<filter>
<filter-name>Bug49922</filter-name>
<filter-class>
org.apache.catalina.core.TestStandardContext$Bug49922Filter
</filter-class>
</filter>
<filter-mapping>
<filter-name>Bug49922</filter-name>
<url-pattern>/bug49922/servlet/*</url-pattern>
<url-pattern>*.do</url-pattern>
<servlet-name>Bug49922</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>Bug49922</filter-name>
<servlet-name>Bug49922Target</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Bug49922Forward</servlet-name>
<servlet-class>
org.apache.catalina.core.TestStandardContext$Bug49922ForwardServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Bug49922Forward</servlet-name>
<url-pattern>/bug49922/forward</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Bug49922Include</servlet-name>
<servlet-class>
org.apache.catalina.core.TestStandardContext$Bug49922IncludeServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Bug49922Include</servlet-name>
<url-pattern>/bug49922/include</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Bug49922Target</servlet-name>
<servlet-class>
org.apache.catalina.core.TestStandardContext$Bug49922TargetServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Bug49922Target</servlet-name>
<url-pattern>/bug49922/target</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Bug49922</servlet-name>
<servlet-class>
org.apache.catalina.core.TestStandardContext$Bug49922Servlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Bug49922</servlet-name>
<url-pattern>/bug49922/servlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Bug49922</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Bug49922</servlet-name>
<url-pattern>*.od</url-pattern>
</servlet-mapping>
<jsp-config>
<jsp-property-group>
<url-pattern>/bug49nnn/bug49726a.jsp</url-pattern>
<url-pattern>/bug49nnn/bug49726b.jsp</url-pattern>
<default-content-type>text/plain</default-content-type>
</jsp-property-group>
<jsp-property-group>
<url-pattern>/bug5nnnn/bug55262.jsp</url-pattern>
<include-prelude>/bug5nnnn/bug55262-prelude.jspf</include-prelude>
<include-prelude>/bug5nnnn/bug55262-prelude.jspf</include-prelude>
<include-coda>/bug5nnnn/bug55262-coda.jspf</include-coda>
<include-coda>/bug5nnnn/bug55262-coda.jspf</include-coda>
<default-content-type>text/plain</default-content-type>
</jsp-property-group>
<jsp-property-group>
<url-pattern>/jsp/encoding/bug60769a.jspx</url-pattern>
<page-encoding>UTF-8</page-encoding>
<is-xml>true</is-xml>
</jsp-property-group>
<jsp-property-group>
<url-pattern>/jsp/encoding/bug60769b.jspx</url-pattern>
<page-encoding>ISO-8859-1</page-encoding>
<is-xml>true</is-xml>
</jsp-property-group>
</jsp-config>
<servlet>
<servlet-name>DenyByAnnotation</servlet-name>
<servlet-class>org.apache.catalina.core.TestStandardWrapper$DenyAllServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DenyByAnnotation</servlet-name>
<url-pattern>/testStandardWrapper/securityAnnotationsMetaDataPriority</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Bug53574</servlet-name>
<jsp-file>/WEB-INF/jsp/bug53574.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>Bug53574</servlet-name>
<url-pattern>/bug53574</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<env-entry>
<description>Resource for testing bug 53465</description>
<env-entry-name>bug53465</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>10</env-entry-value>
<mapped-name>Bug53465MappedName</mapped-name>
</env-entry>
</web-app>