annotate client/digitallibrary/digimage.jsp @ 336:e6dcf7abca00 gen2_1

new directory and cache work
author robcast
date Wed, 17 Nov 2004 18:20:31 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
336
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
1 <%@ page language="java" %><%!
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
2 // -- JSP init -------------
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
3
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
4 // create DocumentBean instance for all JSP requests
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
6
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
7 // initialize DocumentBean instance in JSP init
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
8 public void jspInit() {
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
9 try {
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
10 // set servlet init-parameter
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
11 docBean.setConfig(getServletConfig());
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
12 } catch (javax.servlet.ServletException e) {
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
13 System.out.println(e);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
14 }
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
15 }
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
16 // -- end of JSP init -------------
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
17 %><%
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
18 // -- JSP request -------------
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
19
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
20 // parsing the query
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
21 // -----------------
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
22 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
23 docBean.setRequest(dlRequest);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
24 // check if authentication is needed and redirect if necessary
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
25 docBean.doAuthentication(response);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
26 // add number of pages
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
27 dlRequest.setValue("pt", docBean.getNumPages());
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
28 // store objects for jsp:include
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
29 pageContext.setAttribute("docBean", docBean, pageContext.REQUEST_SCOPE);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
30 %><html>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
31 <head>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
32 <title>Digital Document Library</title>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
33 <script type="text/javascript" src="baselib.js"></script>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
34 <script type="text/javascript" src="dllib.js"></script>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
35 <script type="text/javascript">
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
36 base_init();
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
37 var dlTarget = window.name;
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
38 var baseUrl = '<%= dlRequest.getAsString("base.url") %>';
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
39 var toolbarEnabledURL = window.location.href;
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
40 newParameter('fn', '', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
41 newParameter('pn', '1', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
42 newParameter('ws', '1.0', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
43 newParameter('mo', '', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
44 newParameter('mk', '', 3);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
45 newParameter('wx', '0.0', 2);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
46 newParameter('wy', '0.0', 2);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
47 newParameter('ww', '1.0', 2);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
48 newParameter('wh', '1.0', 2);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
49 newParameter('pt', '<%= dlRequest.getAsString("pt") %>', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
50 newParameter('brgt', '0.0', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
51 newParameter('cont', '0.0', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
52 newParameter('rot', '0.0', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
53 newParameter('rgba', '', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
54 newParameter('rgbm', '', 1);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
55 newParameter('ddpix', '', 9);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
56 newParameter('ddpiy', '', 9);
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
57 document.id='digilib';
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
58 dl_param_init();
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
59 </script>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
60 </head>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
61 <body bgcolor="#666666" onload="dl_init();">
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
62 <% if (dlRequest.hasOption("clop", "noarrows")) {
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
63 %><jsp:include page="digimage_img_inc.jsp" /><%
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
64 } else {
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
65 %><jsp:include page="digimage_tbl_inc.jsp" /><%
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
66 }
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
67 %>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
68
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
69 <div id="dot0" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark1.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
70 <div id="dot1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark2.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
71 <div id="dot2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark3.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
72 <div id="dot3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark4.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
73 <div id="dot4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark5.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
74 <div id="dot5" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark6.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
75 <div id="dot6" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark7.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
76 <div id="dot7" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark8.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
77 <div id="eck1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/olinks.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
78 <div id="eck2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/orechts.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
79 <div id="eck3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/ulinks.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
80 <div id="eck4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/urechts.gif" border="0"></div>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
81
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
82 </body>
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
83
e6dcf7abca00 new directory and cache work
robcast
parents:
diff changeset
84 </html>