Mercurial > hg > digilib-old
view client/digitallibrary/digicat.jsp @ 486:a92f319aec1c
Servlet version 1.16.1
- now with absolute scaling: mo=ascale&scale=X
- reworked scale factor and resolution selection so that absolute scale can use prescaled images (osize can do that too)
ASSIGNED - # 23: display thumbnails with absolute scaling
https://itgroup.mpiwg-berlin.mpg.de:8080/tracs/cdli/ticket/23
author | robcast |
---|---|
date | Sat, 12 May 2007 14:23:34 +0200 |
parents | bf34a4d8f6b4 |
children |
line wrap: on
line source
<%@ page language="java" %><%! // authentication stuff - robert // ----------------------------- // create DocumentBean instance for all JSP requests digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); // initialize DocumentBean instance in JSP init public void jspInit() { try { // set servlet init-parameter docBean.setConfig(getServletConfig()); } catch (javax.servlet.ServletException e) { System.out.println(e); } } %><% // parsing the query // ----------------- digilib.servlet.DigilibRequest dcRequest = new digilib.servlet.DigilibRequest(request); // check if authentication is needed and redirect if necessary docBean.doAuthentication(dcRequest, response); // set number of pages dcRequest.setValue("pt", docBean.getNumPages(dcRequest)); String baseUrl = dcRequest.getAsString("base.url"); %> <html> <head> <title>Digital Document Library - Digicat</title> </head> <frameset cols="*,90" border="0"> <frame name="mainFrame" src="oldskin/dcMain.jsp?<%= dcRequest.getAsString() %>" scrolling="auto"> <frame name="rightFrame" src="oldskin/dcMenu.html" scrolling="no" noresize> </frameset> </html>