Small tweaks, use more friendly content type
[zxing.git] / zxingorg / web / badimage.jspx
index a22368e..8acb2e9 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- Copyright (C) 2008 Google Inc.
+ Copyright 2008 ZXing authors
 
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
+<!-- Author: Sean Owen -->
 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.1">
-<jsp:output
-       omit-xml-declaration="false" doctype-root-element="html"
-       doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.1//EN"
-       doctype-system="http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd"/>
-<jsp:directive.page contentType="application/xhtml+xml" session="false"/>
-<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-<head><title>No Barcode Found</title></head>
-<body>
-<p><b>Bad URL</b></p>
-<p>The image you uploaded could not be decoded, or was too large. Go "Back" in your browser and try another image.</p>
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-788492-5";
-urchinTracker();
-</script>
-</body>
-</html>
+  <jsp:output
+          omit-xml-declaration="false" doctype-root-element="html"
+          doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
+          doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+  <jsp:directive.page contentType="text/html" session="false"/>
+  <jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
+  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+    <head>
+      <title>Bad Image</title>
+    </head>
+    <body>
+      <h1><img src="zxing-icon.png" height="32" width="32" alt=""/> Bad Image</h1>
+      <p>The image you uploaded could not be decoded, or was too large. Go "Back" in your browser and try another
+        image.
+      </p>
+      <jsp:include page="analytics.jspx"/>
+    </body>
+  </html>
 </jsp:root>