annotate client/digitallibrary/digicat.jsp @ 316:bf34a4d8f6b4

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 88f2de6b518a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
316
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
1 <%@ page language="java" %><%!
226
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
2 // authentication stuff - robert
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
3 // -----------------------------
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
4 // create DocumentBean instance for all JSP requests
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
6
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
7 // initialize DocumentBean instance in JSP init
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
8 public void jspInit() {
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
9 try {
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
10 // set servlet init-parameter
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
11 docBean.setConfig(getServletConfig());
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
12 } catch (javax.servlet.ServletException e) {
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
13 System.out.println(e);
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
14 }
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
15 }
316
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
16 %><%
226
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
17
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
18 // parsing the query
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
19 // -----------------
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
20
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
21 digilib.servlet.DigilibRequest dcRequest = new digilib.servlet.DigilibRequest(request);
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
22 // check if authentication is needed and redirect if necessary
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
23 docBean.doAuthentication(dcRequest, response);
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
24
316
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
25 // set number of pages
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
26 dcRequest.setValue("pt", docBean.getNumPages(dcRequest));
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
27 String baseUrl = dcRequest.getAsString("base.url");
226
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
28 %>
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
29 <html>
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
30 <head>
316
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
31 <title>Digital Document Library - Digicat</title>
226
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
32 </head>
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
33
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
34 <frameset cols="*,90" border="0">
316
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
35 <frame name="mainFrame" src="oldskin/dcMain.jsp?<%= dcRequest.getAsString() %>" scrolling="auto">
bf34a4d8f6b4 big autumn cleaning :-)
robcast
parents: 226
diff changeset
36 <frame name="rightFrame" src="oldskin/dcMenu.html" scrolling="no" noresize>
226
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
37 </frameset>
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
38
88f2de6b518a new digicat version with only one js file
luginbue
parents: 193
diff changeset
39 </html>