annotate client/digitallibrary/digilib.jsp @ 40:79f1deeb18c4

opera support done, bugfixes
author luginbue
date Tue, 21 May 2002 02:29:41 +0200
parents 84a481a388bb
children e918bd61084d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
1 <%@ page language="java" import="java.util.*" %>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
2
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
3 <html>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
4 <head>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
5 <title>Digital Document Library</title>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
6 </head>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
7
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
8 <jsp:useBean id="DB" scope="page" class="digilib.servlet.DocumentBean" />
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
9
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
10 <%
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
11 // authentication stuff - robert
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
12 // -----------------------------
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
13
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
14 // set servlet init-parameter
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
15 DB.setConfig(getServletConfig());
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
16 // check if authentication is needed and redirect if necessary
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
17 DB.doAuthentication(request, response);
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
18
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
19
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
20 // parsing the query
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
21 // -----------------
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
22
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
23 String query = "";
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
24
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
25 if (request.getQueryString() != null) {
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
26 StringTokenizer tokenizer = new StringTokenizer(request.getQueryString(), "+");
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
27
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
28 int numTokens = tokenizer.countTokens();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
29
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
30 if (numTokens >= 1) query += "fn=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
31 if (numTokens >= 2) query += "&pn=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
32 if (numTokens >= 3) query += "&ws=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
33 if (numTokens >= 4) query += "&mo=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
34 if (numTokens >= 5) query += "&mk=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
35 if (numTokens >= 6) query += "&wx=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
36 if (numTokens >= 7) query += "&wy=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
37 if (numTokens >= 8) query += "&ww=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
38 if (numTokens >= 9) query += "&wh=" + tokenizer.nextToken();
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
39
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
40 // a module update for total number of pages
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
41 query += "&pt=" + DB.getNumPages(request);
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
42 }
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
43 %>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
44
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
45 <frameset cols="*,90" border="0">
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
46 <frame name="mainFrame" src="dlImage.jsp?<%= query %>" scrolling="auto">
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
47 <frameset rows="20,*" border="0">
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
48 <frame name="pageFrame" src="about:blank" scrolling="no" noresize>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
49 <frame name="rightFrame" src="dlMenu.html" scrolling="no" noresize>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
50 </frameset>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
51 </frameset>
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
52
84a481a388bb first update of new client-version
luginbue
parents: 28
diff changeset
53 </html>