Mercurial > hg > digilib-old
comparison client/src/main/webapp/digicat.jsp @ 892:ba1eb2d821a2 mvnify
rearrange sources to maven directory standard
author | robcast |
---|---|
date | Tue, 19 Apr 2011 18:44:25 +0200 |
parents | client/digitallibrary/digicat.jsp@bf34a4d8f6b4 |
children |
comparison
equal
deleted
inserted
replaced
891:6584af320296 | 892:ba1eb2d821a2 |
---|---|
1 <%@ page language="java" %><%! | |
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 } | |
16 %><% | |
17 | |
18 // parsing the query | |
19 // ----------------- | |
20 | |
21 digilib.servlet.DigilibRequest dcRequest = new digilib.servlet.DigilibRequest(request); | |
22 // check if authentication is needed and redirect if necessary | |
23 docBean.doAuthentication(dcRequest, response); | |
24 | |
25 // set number of pages | |
26 dcRequest.setValue("pt", docBean.getNumPages(dcRequest)); | |
27 String baseUrl = dcRequest.getAsString("base.url"); | |
28 %> | |
29 <html> | |
30 <head> | |
31 <title>Digital Document Library - Digicat</title> | |
32 </head> | |
33 | |
34 <frameset cols="*,90" border="0"> | |
35 <frame name="mainFrame" src="oldskin/dcMain.jsp?<%= dcRequest.getAsString() %>" scrolling="auto"> | |
36 <frame name="rightFrame" src="oldskin/dcMenu.html" scrolling="no" noresize> | |
37 </frameset> | |
38 | |
39 </html> |