annotate client/digitallibrary/digilib.jsp @ 645:ce5c61b891f6 jquery

added guessing of scalerBaseUrl
author robcast
date Thu, 20 Jan 2011 20:15:45 +0100
parents c53c52367542
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
325
c53c52367542 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
1 <%@ page language="java" %><%!
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
2 // authentication stuff - robert
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 // create DocumentBean instance for all JSP requests
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
6
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
7 // initialize DocumentBean instance in JSP init
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
8 public void jspInit() {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
9 try {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
10 // set servlet init-parameter
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
11 docBean.setConfig(getServletConfig());
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
12 } catch (javax.servlet.ServletException e) {
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
13 System.out.println(e);
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
14 }
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
15 }
325
c53c52367542 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
16 %><%
163
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 // parsing the query
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 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
22 // check if authentication is needed and redirect if necessary
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
23 docBean.doAuthentication(dlRequest, response);
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
24
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
25 String digiURL = "digimage.jsp?" + dlRequest.getAsString();
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
26
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
27 %><html>
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
28 <head>
325
c53c52367542 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
29 <title>Digital Document Library</title>
163
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
30 </head>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
31
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
32 <frameset cols="*,90" border="0" onload="pageFrame.show()">
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
33 <frame name="mainFrame" src="<%= digiURL %>" scrolling="auto">
325
c53c52367542 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
34 <frameset rows="25,*" border="0">
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
35 <frame name="pageFrame" src="oldskin/pageWin.html" scrolling="no" noresize>
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 227
diff changeset
36 <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
37 </frameset>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
38 </frameset>
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
39
2d3c6446d8b9 Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 129
diff changeset
40 </html>