License should be first thing in file unless file format prohibits it
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 11 Jan 2011 15:29:28 +0000 (15:29 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 11 Jan 2011 15:29:28 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1057694 13f79535-47bb-0310-9956-ffa450edef68

37 files changed:
test/webapp-3.0/bug42565.jsp
test/webapp-3.0/bug44994.jsp
test/webapp-3.0/bug45nnn/bug45015a.jsp
test/webapp-3.0/bug45nnn/bug45015b.jsp
test/webapp-3.0/bug45nnn/bug45015c.jsp
test/webapp-3.0/bug45nnn/bug45427.jsp
test/webapp-3.0/bug45nnn/bug45451a.jsp
test/webapp-3.0/bug45nnn/bug45511.jsp
test/webapp-3.0/bug46381.jsp
test/webapp-3.0/bug46596.jsp
test/webapp-3.0/bug47331.jsp
test/webapp-3.0/bug47413.jsp
test/webapp-3.0/bug48nnn/bug48112.jsp
test/webapp-3.0/bug48nnn/bug48627.jsp
test/webapp-3.0/el-method.jsp
test/webapp-3.0/el-misc.jsp
test/webapp-3.0/script-expr.jsp
webapps/ROOT/index.jsp
webapps/examples/jsp/cal/cal1.jsp
webapps/examples/jsp/cal/cal2.jsp
webapps/examples/jsp/chat/index.jsp
webapps/examples/jsp/chat/login.jsp
webapps/examples/jsp/chat/post.jsp
webapps/examples/jsp/checkbox/checkresult.jsp
webapps/examples/jsp/colors/colrs.jsp
webapps/examples/jsp/dates/date.jsp
webapps/examples/jsp/error/err.jsp
webapps/examples/jsp/error/errorpge.jsp
webapps/examples/jsp/forward/forward.jsp
webapps/examples/jsp/forward/one.jsp
webapps/examples/jsp/include/include.jsp
webapps/examples/jsp/jsptoserv/hello.jsp
webapps/examples/jsp/jsptoserv/jsptoservlet.jsp
webapps/examples/jsp/plugin/plugin.jsp
webapps/examples/jsp/sessions/carts.jsp
webapps/examples/jsp/simpletag/foo.jsp
webapps/examples/jsp/snp/snoop.jsp

index 8aeb539..fbec1a1 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 42565 test case</title></head>
   <body>
index 43410d0..47d8c11 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 44994 test case</title></head>
   <body>
index 3d85ba4..096e08d 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45015 test case A</title></head>
   <body>
index a032a11..2b3e946 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45015 test case B</title></head>
   <body>
index 00d86fe..ceb740b 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45015 test case C</title></head>
   <body>
index 41cd19b..fb7af45 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45427 test case</title></head>
   <body>
index f3a67f4..43bbe47 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45451 test case</title></head>
   <body>
index 6279eba..d643cf9 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 45511 test case</title></head>
   <body>
index 629a15c..fbd0b05 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 46381 test case</title></head>
   <%
index 6da5792..d9a1da8 100644 (file)
@@ -1,5 +1,3 @@
-<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -16,6 +14,8 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <html>
   <head><title>Bug 46596 test case</title></head>
   <body>
index a174dc3..eca3a1a 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 47331 test case</title></head>
   <body>
index eb79ae1..155e429 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <jsp:useBean id="values" class="jsp2.examples.ValuesBean" />
 <html>
   <head><title>Bug 47413 test case</title></head>
index 356e680..d418b6c 100644 (file)
@@ -1,5 +1,3 @@
-<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -16,6 +14,8 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <html>
   <head><title>Bug 48112 test case</title></head>
   <body>
index 54a79fa..5716506 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   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 46596 test case</title></head>
   <body>
index cc930dc..bbb74c1 100644 (file)
@@ -1,6 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
-<%@ page import="org.apache.el.TesterBeanA" %>
-<%@ page import="org.apache.el.TesterBeanB" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -17,6 +14,9 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%@ page import="org.apache.el.TesterBeanA" %>
+<%@ page import="org.apache.el.TesterBeanB" %>
 <html>
   <head><title>EL method test cases</title></head>
   <body>
index 053252b..cf1d8a7 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <html>
   <head><title>Misc EL test cases</title></head>
   <body>
index eaa8caf..1f43225 100644 (file)
@@ -1,4 +1,3 @@
-<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <%--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 --%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
 <html>
   <head><title>Scripting expression test cases</title></head>
   <body>
index a998b42..e0d68e2 100644 (file)
@@ -1,4 +1,3 @@
-<!DOCTYPE html>
 <!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@ 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 html>
 <%
 java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy");
 request.setAttribute("year", sdf.format(new java.util.Date()));
index 42d4197..db89af6 100644 (file)
@@ -1,4 +1,3 @@
-<HTML>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<HTML>
 <HEAD><TITLE> 
     Calendar: A JSP APPLICATION
 </TITLE></HEAD>
index b2295de..ca9dc06 100644 (file)
@@ -1,4 +1,3 @@
-<HTML>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
+<HTML>
 <HEAD><TITLE> 
     Calendar: A JSP APPLICATION
 </TITLE></HEAD>
index e0b3729..62fdea1 100644 (file)
@@ -1,11 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" %>
-<% if (session.getAttribute("nickname") == null) {
-    response.sendRedirect("login.jsp");
-    return;
-}
-%>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<%@page contentType="text/html; charset=UTF-8" %>
+<% if (session.getAttribute("nickname") == null) {
+    response.sendRedirect("login.jsp");
+    return;
+}
+%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
+<html>
 <head>
    <title>JSP Chat</title>
 </head>
index 551ca34..e9a653f 100644 (file)
@@ -1,6 +1,3 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<%@page contentType="text/html; charset=UTF-8" %>
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -17,6 +14,9 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@page contentType="text/html; charset=UTF-8" %>
+<html>
 <head>
    <title>JSP Chat</title>
 </head>
index 69dde51..b2b3e09 100644 (file)
@@ -1,6 +1,3 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<%@page contentType="text/html; charset=UTF-8" %>
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -17,6 +14,9 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%@page contentType="text/html; charset=UTF-8" %>
+<html>
 <head>
    <title>JSP Chat</title>
 </head>
index 4b7fa96..52c85ea 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
+<html>
 <body bgcolor="white">
 <font size=5 color="red">
 <%! String[] fruits; %>
index f766196..95e4dd3 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 
 <jsp:useBean id="cb" scope="session" class="colors.ColorGameBean" />
 <jsp:setProperty name="cb" property="*" />
index 84c2724..a818718 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 
 <%@ page session="false"%>
 
index dc5d98b..152976f 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 <body bgcolor="lightblue">
 
     <%@ page errorPage="errorpge.jsp" %>
index e52ccfc..be8ba20 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 
 <body bgcolor="red">
 
index b395aa7..72147b3 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
+<html>
 <% 
    double freeMem = Runtime.getRuntime().freeMemory();
    double totlMem = Runtime.getRuntime().totalMemory();
index 39441df..4ef090c 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 
 <body bgcolor="white">
 <font color="red">
index 706ff7e..5a00fae 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 
 <body bgcolor="white">
 
index ea81050..a657219 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 <body bgcolor="white">
 
 <h1>
index 5a7e57f..62e3b2d 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 <body bgcolor="white">
 
 <!-- Forward to a servlet -->
index 548a110..7711e7a 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 <title> Plugin example </title>
 <body bgcolor="white">
 <h3> Current time is : </h3>
index 3a3f6fc..cad0b97 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
+<html>
 <jsp:useBean id="cart" scope="session" class="sessions.DummyCart" />
 
 <jsp:setProperty name="cart" property="*" />
index d86fe02..92200d0 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,6 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
+<html>
 <body>
 <%@ taglib uri="http://tomcat.apache.org/example-taglib" prefix="eg"%>
 
index c8561de..ec31b0d 100644 (file)
@@ -1,4 +1,3 @@
-<html>
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +14,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
+<html>
 <body bgcolor="white">
 <h1> Request Information </h1>
 <font size="4">