init
This commit is contained in:
40
test/webapp/jsp/encoding/README.txt
Normal file
40
test/webapp/jsp/encoding/README.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
================================================================================
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
================================================================================
|
||||
|
||||
A number of the test files in this directory specify conflicting encoding
|
||||
in the BOM and and in the XML prolog. The rules for determining the actual
|
||||
encoding used in the file are as follows:
|
||||
|
||||
1. If there is a BOM, use the encoding defined by the BOM.
|
||||
|
||||
2. If there is no BOM but there is an XML prolog, use the encoding defined by
|
||||
the XML prolog.
|
||||
|
||||
3. If there is no BOM and no XML prolog, use UTF-8.
|
||||
|
||||
|
||||
Notes:
|
||||
|
||||
1. The svn:mime-type property has been set correctly for all files.
|
||||
|
||||
2. For files in UTF-8 encoding, the svn:eol-style property has been set to
|
||||
native. Some svn clients do not seem to be able to handle setting that
|
||||
property on files using UTF-16LE or UTF16-BE. For these files, the
|
||||
line-ending used is CRLF (Windows) since that is where they were created.
|
||||
|
||||
2. Notepad++ is a useful text editor for working with these files since it
|
||||
provides explicit control of encoding and BOM used.
|
||||
17
test/webapp/jsp/encoding/bom-none-prolog-none.jsp
Normal file
17
test/webapp/jsp/encoding/bom-none-prolog-none.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.
|
||||
--%>
|
||||
<%@ page contentType="text/plain"%>OK
|
||||
21
test/webapp/jsp/encoding/bom-none-prolog-none.jspx
Normal file
21
test/webapp/jsp/encoding/bom-none-prolog-none.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
BIN
test/webapp/jsp/encoding/bom-none-prolog-utf16be.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-none-prolog-utf16be.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-none-prolog-utf16le.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-none-prolog-utf16le.jspx
Normal file
Binary file not shown.
21
test/webapp/jsp/encoding/bom-none-prolog-utf8.jspx
Normal file
21
test/webapp/jsp/encoding/bom-none-prolog-utf8.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.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-none.jsp
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-none.jsp
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-none.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-none.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf16be.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf16be.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf16le.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf16le.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf8.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16be-prolog-utf8.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-none.jsp
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-none.jsp
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-none.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-none.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf16be.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf16be.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf16le.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf16le.jspx
Normal file
Binary file not shown.
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf8.jspx
Normal file
BIN
test/webapp/jsp/encoding/bom-utf16le-prolog-utf8.jspx
Normal file
Binary file not shown.
17
test/webapp/jsp/encoding/bom-utf8-prolog-none.jsp
Normal file
17
test/webapp/jsp/encoding/bom-utf8-prolog-none.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.
|
||||
--%>
|
||||
<%@ page contentType="text/plain"%>OK
|
||||
21
test/webapp/jsp/encoding/bom-utf8-prolog-none.jspx
Normal file
21
test/webapp/jsp/encoding/bom-utf8-prolog-none.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf16be.jspx
Normal file
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf16be.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-16BE" ?>
|
||||
<!--
|
||||
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.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf16le.jspx
Normal file
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf16le.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-16LE" ?>
|
||||
<!--
|
||||
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.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf8.jspx
Normal file
21
test/webapp/jsp/encoding/bom-utf8-prolog-utf8.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.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
21
test/webapp/jsp/encoding/bug60769a.jspx
Normal file
21
test/webapp/jsp/encoding/bug60769a.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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.
|
||||
-->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
21
test/webapp/jsp/encoding/bug60769b.jspx
Normal file
21
test/webapp/jsp/encoding/bug60769b.jspx
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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.
|
||||
-->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.3">
|
||||
<jsp:directive.page contentType="text/plain" />
|
||||
<jsp:text>OK</jsp:text>
|
||||
</jsp:root>
|
||||
22
test/webapp/jsp/error.jsp
Normal file
22
test/webapp/jsp/error.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 session="false" isErrorPage="true" %>
|
||||
<html>
|
||||
<body>
|
||||
<p>ERROR</p>
|
||||
</body>
|
||||
</html>
|
||||
39
test/webapp/jsp/pageContext1.jsp
Normal file
39
test/webapp/jsp/pageContext1.jsp
Normal file
@@ -0,0 +1,39 @@
|
||||
<%--
|
||||
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.io.IOException" contentType="text/plain"%>
|
||||
<%
|
||||
boolean flush = Boolean.valueOf(request.getParameter("flush"));
|
||||
if (pageContext != null) {
|
||||
try {
|
||||
if (flush) {
|
||||
out.println("Flush");
|
||||
pageContext.include("/jsp/pageContext2.jsp", true);
|
||||
} else {
|
||||
pageContext.include("/jsp/pageContext2.jsp");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
out.println("OK");
|
||||
return;
|
||||
} catch (Throwable t) {
|
||||
out.println("FAILED. Expected IOException, received: " + t.getClass().getName());
|
||||
return;
|
||||
}
|
||||
out.println("FAILED. Expected IOException.");
|
||||
} else {
|
||||
out.println("FAILED. Expected IOException.");
|
||||
}
|
||||
%>
|
||||
18
test/webapp/jsp/pageContext2.jsp
Normal file
18
test/webapp/jsp/pageContext2.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.
|
||||
--%>
|
||||
<%@ page import="java.io.IOException" contentType="text/plain"%>
|
||||
<% throw new IOException("Throws IOException."); %>
|
||||
18
test/webapp/jsp/tagFileInJar.jsp
Normal file
18
test/webapp/jsp/tagFileInJar.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.
|
||||
--%>
|
||||
<%@ taglib uri="http://tomcat.apache.org/test-lib" prefix="testlib" %>
|
||||
<testlib:echo echo="00 - OK" />
|
||||
18
test/webapp/jsp/test.jsp
Normal file
18
test/webapp/jsp/test.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.
|
||||
--%>
|
||||
<%@ page contentType="text/plain" %>
|
||||
<%@ taglib uri="../WEB-INF/test.tld" prefix="test" %>
|
||||
Reference in New Issue
Block a user