annotate client/digitallibrary/digilib.jsp @ 322:ccddc9a5b63b

fixed small problem with page numbers for slow loading pages
author robcast
date Tue, 02 Nov 2004 10:46:54 +0100
parents 610c7ee770cb
children 1b7a6c0b2da8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
1 <%@ page language="java" %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
2
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
3 <%!
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
4 // authentication stuff - robert
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
5 // -----------------------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
6 // create DocumentBean instance for all JSP requests
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
7 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
8
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
9 // initialize DocumentBean instance in JSP init
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
10 public void jspInit() {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
11 try {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
12 // set servlet init-parameter
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
13 docBean.setConfig(getServletConfig());
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
14 } catch (javax.servlet.ServletException e) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
15 System.out.println(e);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
16 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
17 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
18 %>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
19 <%
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
20
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
21 // parsing the query
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
22 // -----------------
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
23
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
24 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
25 // check if authentication is needed and redirect if necessary
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
26 docBean.doAuthentication(dlRequest, response);
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
27
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
28 String digiURL = "digimage.jsp?" + dlRequest.getAsString();
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
29
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
30 %><html>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
31 <head>
199
21789f3f7251 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 167
diff changeset
32 <title>Digital Document Library (L2)</title>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
33 </head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
34
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
35 <frameset cols="*,90" border="0" onload="pageFrame.show()">
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
36 <frame name="mainFrame" src="<%= digiURL %>" scrolling="auto">
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
37 <frameset rows="20,*" border="0">
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
38 <frame name="pageFrame" src="oldskin/pageWin.html" scrolling="no" noresize>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
39 <frame name="rightFrame" src="oldskin/dlMenu.html" scrolling="no" noresize>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
40 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
41 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
42
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
43 </html>