Make web app work on Servlet/JSP 2.3/1.2 and fix some other mistakes
[zxing.git] / zxingorg / web / decoderesult.jspx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright 2008 ZXing authors
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17 <!-- Author: Sean Owen -->
18 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
19 <jsp:directive.page contentType="text/html" session="false"/>
20 <jsp:scriptlet>response.setHeader("Cache-Control", "no-cache");</jsp:scriptlet>
21 <jsp:useBean id="result" scope="request" type="com.google.zxing.Result"/>
22 <jsp:useBean id="parsedResult" scope="request" type="com.google.zxing.client.result.ParsedResult"/>
23 <jsp:text><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">]]></jsp:text>
24 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
25   <head>
26     <title>Decode Succeeded</title>
27     <style type="text/css">
28       td { vertical-align: top; padding: 0.1in; background-color: #EEEEEE; font-family: monospace; }
29     </style>
30   </head>
31   <body>
32     <h1><img src="zxing-icon.png" height="32" width="32" alt=""/> Decode Succeeded</h1>
33     <table>
34       <tr>
35         <td>Raw text</td>
36         <td><jsp:expression>request.getAttribute("text")</jsp:expression></td>
37       </tr>
38       <tr>
39         <td>Raw bytes</td>
40         <td><jsp:expression>request.getAttribute("rawBytesString")</jsp:expression></td>
41       </tr>
42       <tr>
43         <td>Barcode format</td>
44         <td><jsp:getProperty name="result" property="barcodeFormat"/></td>
45       </tr>
46       <tr>
47         <td>Parsed Result Type</td>
48         <td><jsp:getProperty name="parsedResult" property="type"/></td>
49       </tr>
50       <tr>
51         <td>Parsed Result</td>
52         <td><jsp:expression>request.getAttribute("displayResult")</jsp:expression></td>
53       </tr>
54     </table>
55     <p>Copyright 2008 and onwards ZXing authors</p>
56     <jsp:include page="analytics.jspx"/>
57   </body>
58 </html>
59 </jsp:root>