Mercurial > hg > digilib-old
annotate client/digitallibrary/digilib.jsp @ 317:610c7ee770cb
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 | 16126dee8712 |
children | 1b7a6c0b2da8 |
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 | 27 |
28 String digiURL = "digimage.jsp?" + dlRequest.getAsString(); | |
167
2336ac05d57d
Servlet Version 1.16b2 with new DigilibParameter code.
robcast
parents:
133
diff
changeset
|
29 |
317 | 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 | 35 <frameset cols="*,90" border="0" onload="pageFrame.show()"> |
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 | 38 <frame name="pageFrame" src="oldskin/pageWin.html" scrolling="no" noresize> |
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> |