annotate client/digitallibrary/digilib.jsp @ 313:152ad1e1ca27

big autumn cleaning :-) - finally digilib.jsp uses the new javascript code - dito digicat.jsp - all files corresponding to the old frontend moved into /oldskin - all icons moved into /img
author robcast
date Thu, 28 Oct 2004 22:25:59 +0200
parents 32212dfba275
children c53c52367542
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
1 <%@ page language="java" %>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
2
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
3 <%!
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
4 // authentication stuff - robert
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
5 // -----------------------------
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
6 // create DocumentBean instance for all JSP requests
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
7 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
8
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
9 // initialize DocumentBean instance in JSP init
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
10 public void jspInit() {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
11 try {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
12 // set servlet init-parameter
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
13 docBean.setConfig(getServletConfig());
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
14 } catch (javax.servlet.ServletException e) {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
15 System.out.println(e);
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
16 }
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
17 }
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
18 %>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
19 <%
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
20
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
21 // parsing the query
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
22 // -----------------
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
23
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
24 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
25 // check if authentication is needed and redirect if necessary
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
26 docBean.doAuthentication(dlRequest, response);
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
27
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
28 String digiURL = "digimage.jsp?" + dlRequest.getAsString();
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
29
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
30 %><html>
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
31 <head>
195
51aea2a9a172 Corrected Problems with innerWidth and about:blank for Safari.
robcast
parents: 163
diff changeset
32 <title>Digital Document Library (L2)</title>
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
33 </head>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
34
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
35 <frameset cols="*,90" border="0" onload="pageFrame.show()">
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
36 <frame name="mainFrame" src="<%= digiURL %>" scrolling="auto">
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
37 <frameset rows="20,*" border="0">
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
38 <frame name="pageFrame" src="oldskin/pageWin.html" scrolling="no" noresize>
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
39 <frame name="rightFrame" src="oldskin/dlMenu.html" scrolling="no" noresize>
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
40 </frameset>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
41 </frameset>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
42
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
43 </html>