Mercurial > hg > digilib-old
comparison client/digitallibrary/digilib.jsp @ 77:b877e54b0794
New servlet version 1.5b.
Mostly cleanup. Global parameters for digilib now in DigilibConfiguration,
per request parameters are now all in DigilibRequest. The DocuImage implementation
can be selected by the configuration docuimage-class.
Pixel-by-pixel view implemented with "mo=clip".
author | robcast |
---|---|
date | Fri, 24 Jan 2003 22:13:49 +0100 |
parents | 58d23f512c80 |
children | 489f61d9feac |
comparison
equal
deleted
inserted
replaced
76:7b0ba81a5a6b | 77:b877e54b0794 |
---|---|
16 } | 16 } |
17 } | 17 } |
18 %> | 18 %> |
19 | 19 |
20 <% | 20 <% |
21 // check if authentication is needed and redirect if necessary | |
22 docBean.doAuthentication(request, response); | |
23 | |
24 // parsing the query | 21 // parsing the query |
25 // ----------------- | 22 // ----------------- |
26 | 23 |
27 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(); | 24 digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); |
28 // fill the request with the old format query string | 25 // check if authentication is needed and redirect if necessary |
29 dlRequest.setWithOldString(request.getQueryString()); | 26 docBean.doAuthentication(dlRequest, response); |
27 | |
30 // add number of pages | 28 // add number of pages |
31 dlRequest.setPt(docBean.getNumPages(request)); | 29 dlRequest.setPt(docBean.getNumPages(dlRequest)); |
32 // retrieve request in new paramter format | 30 // retrieve request in new paramter format |
33 String query = "dlImage.jsp?" + dlRequest.getAsString(); | 31 String query = "dlImage.jsp?" + dlRequest.getAsString(); |
34 %> | 32 %> |
35 | 33 |
36 <html> | 34 <html> |