annotate client/digitallibrary/digilib.jsp @ 636:7049579a0097 jquery

last and next page works now implemented redisplay function (only tested with fullscreen) parameters that are changed need to be in data.queryParams to get in the url on redisplay
author robcast
date Tue, 18 Jan 2011 21:30:03 +0100
parents 1b7a6c0b2da8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
329
1b7a6c0b2da8 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 317
diff changeset
1 <%@ page language="java" %><%!
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
2 // authentication stuff - robert
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 // create DocumentBean instance for all JSP requests
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
6
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
7 // initialize DocumentBean instance in JSP init
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
8 public void jspInit() {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
9 try {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
10 // set servlet init-parameter
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
11 docBean.setConfig(getServletConfig());
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
12 } catch (javax.servlet.ServletException e) {
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
13 System.out.println(e);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
14 }
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
15 }
329
1b7a6c0b2da8 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 317
diff changeset
16 %><%
167
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 // parsing the query
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 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
22 // check if authentication is needed and redirect if necessary
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
23 docBean.doAuthentication(dlRequest, response);
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
24
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
25 String digiURL = "digimage.jsp?" + dlRequest.getAsString();
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
26
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
27 %><html>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
28 <head>
329
1b7a6c0b2da8 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 317
diff changeset
29 <title>Digital Document Library</title>
167
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
30 </head>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
31
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
32 <frameset cols="*,90" border="0" onload="pageFrame.show()">
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
33 <frame name="mainFrame" src="<%= digiURL %>" scrolling="auto">
329
1b7a6c0b2da8 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 317
diff changeset
34 <frameset rows="25,*" border="0">
317
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
35 <frame name="pageFrame" src="oldskin/pageWin.html" scrolling="no" noresize>
610c7ee770cb big autumn cleaning :-)
robcast
parents: 231
diff changeset
36 <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
37 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
38 </frameset>
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
39
2336ac05d57d Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents: 133
diff changeset
40 </html>