annotate webapp/src/main/webapp/digicat.jsp @ 1131:c1e7821d3c68

fix bug in path of arrow-images and problem with nested options.
author robcast
date Tue, 13 Nov 2012 17:35:32 +0100
parents 7779b37d1d05
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
903
7779b37d1d05 refactored into maven modules per servlet type.
robcast
parents: 892
diff changeset
21 digilib.servlet.DigilibServletRequest dcRequest = new digilib.servlet.DigilibServletRequest(request);
226
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>