Mercurial > hg > digilib-old
annotate client/digitallibrary/digimage.jsp @ 858:da4938dac521 stream
don't prestart threads.
doesn't really matter for tomcat since we need no-memory-leak-test for ImageIO anyway.
author | robcast |
---|---|
date | Tue, 08 Mar 2011 13:15:12 +0100 |
parents | e1094c5ec032 |
children |
rev | line source |
---|---|
240 | 1 <%@ page language="java" %><%! |
2 // -- JSP init ------------- | |
3 | |
237 | 4 // create DocumentBean instance for all JSP requests |
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | |
6 | |
7 // initialize DocumentBean instance in JSP init | |
8 public void jspInit() { | |
9 try { | |
10 // set servlet init-parameter | |
11 docBean.setConfig(getServletConfig()); | |
12 } catch (javax.servlet.ServletException e) { | |
13 System.out.println(e); | |
14 } | |
15 } | |
240 | 16 // -- end of JSP init ------------- |
17 %><% | |
18 // -- JSP request ------------- | |
19 | |
237 | 20 // parsing the query |
21 // ----------------- | |
22 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); | |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
23 docBean.setRequest(dlRequest); |
237 | 24 // check if authentication is needed and redirect if necessary |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
25 docBean.doAuthentication(response); |
237 | 26 // add number of pages |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
27 dlRequest.setValue("pt", docBean.getNumPages()); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
28 // store objects for jsp:include |
547 | 29 pageContext.setAttribute("docBean", docBean, PageContext.REQUEST_SCOPE); |
237 | 30 %><html> |
31 <head> | |
32 <title>Digital Document Library (L1)</title> | |
33 <script type="text/javascript" src="baselib.js"></script> | |
34 <script type="text/javascript" src="dllib.js"></script> | |
35 <script type="text/javascript"> | |
330
1ddfe4802260
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
36 base_init(); |
237 | 37 var dlTarget = window.name; |
38 var baseUrl = '<%= dlRequest.getAsString("base.url") %>'; | |
240 | 39 var toolbarEnabledURL = window.location.href; |
237 | 40 newParameter('fn', '', 1); |
41 newParameter('pn', '1', 1); | |
446
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
42 newParameter('ws', '1.0', 2); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
43 newParameter('mo', '', 2); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
44 newParameter('wx', '0.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
45 newParameter('wy', '0.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
46 newParameter('ww', '1.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
47 newParameter('wh', '1.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
48 newParameter('brgt', '0.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
49 newParameter('cont', '0.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
50 newParameter('rot', '0.0', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
51 newParameter('rgba', '', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
52 newParameter('rgbm', '', 4); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
53 newParameter('ddpi', '', 8); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
54 newParameter('ddpix', '', 8); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
55 newParameter('ddpiy', '', 8); |
323e7d7dc378
fixed problem with next/prev page button in oldskin
robcast
parents:
345
diff
changeset
|
56 newParameter('mk', '', 16); |
449
e01e9112adc3
a little nicer implementation of back/next page in oldskin
robcast
parents:
446
diff
changeset
|
57 newParameter('pt', '0', 32); |
e01e9112adc3
a little nicer implementation of back/next page in oldskin
robcast
parents:
446
diff
changeset
|
58 setParameter('pt', '<%= dlRequest.getAsString("pt") %>'); |
237 | 59 document.id='digilib'; |
238 | 60 dl_param_init(); |
237 | 61 </script> |
62 </head> | |
240 | 63 <body bgcolor="#666666" onload="dl_init();"> |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
64 <% if (dlRequest.hasOption("clop", "noarrows")) { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
65 %><jsp:include page="digimage_img_inc.jsp" /><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
66 } else { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
67 %><jsp:include page="digimage_tbl_inc.jsp" /><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
68 } |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
240
diff
changeset
|
69 %> |
237 | 70 |
317 | 71 <div id="dot0" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark1.gif" border="0"></div> |
72 <div id="dot1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark2.gif" border="0"></div> | |
73 <div id="dot2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark3.gif" border="0"></div> | |
74 <div id="dot3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark4.gif" border="0"></div> | |
75 <div id="dot4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark5.gif" border="0"></div> | |
76 <div id="dot5" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark6.gif" border="0"></div> | |
77 <div id="dot6" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark7.gif" border="0"></div> | |
78 <div id="dot7" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/mark8.gif" border="0"></div> | |
79 <div id="eck1" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/olinks.gif" border="0"></div> | |
80 <div id="eck2" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/orechts.gif" border="0"></div> | |
81 <div id="eck3" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/ulinks.gif" border="0"></div> | |
82 <div id="eck4" style="position:absolute; left:-20; top:100; visibility:hidden"><img src="img/urechts.gif" border="0"></div> | |
237 | 83 |
84 </body> | |
85 | |
86 </html> |