316
|
1 <%@ page language="java" %><%!
|
226
|
2 // authentication stuff - robert
|
|
3 // -----------------------------
|
|
4 // create DocumentBean instance for all JSP requests
|
|
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean();
|
|
6
|
|
7 // initialize DocumentBean instance in JSP init
|
|
8 public void jspInit() {
|
|
9 try {
|
|
10 // set servlet init-parameter
|
|
11 docBean.setConfig(getServletConfig());
|
|
12 } catch (javax.servlet.ServletException e) {
|
|
13 System.out.println(e);
|
|
14 }
|
|
15 }
|
316
|
16 %><%
|
226
|
17
|
|
18 // parsing the query
|
|
19 // -----------------
|
|
20
|
903
|
21 digilib.servlet.DigilibServletRequest dcRequest = new digilib.servlet.DigilibServletRequest(request);
|
226
|
22 // check if authentication is needed and redirect if necessary
|
|
23 docBean.doAuthentication(dcRequest, response);
|
|
24
|
316
|
25 // set number of pages
|
|
26 dcRequest.setValue("pt", docBean.getNumPages(dcRequest));
|
|
27 String baseUrl = dcRequest.getAsString("base.url");
|
226
|
28 %>
|
|
29 <html>
|
|
30 <head>
|
316
|
31 <title>Digital Document Library - Digicat</title>
|
226
|
32 </head>
|
|
33
|
|
34 <frameset cols="*,90" border="0">
|
316
|
35 <frame name="mainFrame" src="oldskin/dcMain.jsp?<%= dcRequest.getAsString() %>" scrolling="auto">
|
|
36 <frame name="rightFrame" src="oldskin/dcMenu.html" scrolling="no" noresize>
|
226
|
37 </frameset>
|
|
38
|
|
39 </html>
|