view client/digitallibrary/dlInfo-xml.jsp @ 410:395db075906d
removed mark divs and images, they are added programmatically now;
moved resetParameters() function to baselib.js;
moved all initalization code to onload function;
added "about" div with slots for version number display;
added "overlay" div for better mousemove control (for "zoom area");
added "debug" div and script
author
hertzhaft
date
Tue, 13 Dec 2005 13:36:28 +0100 (2005-12-13)
parents
a6bd80bcd28b
children
bc9196347188
line source
<%@ page language="java" %><%!+ −
// 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);+ −
}+ −
}+ −
%><?xml version="1.0" encoding="UTF-8" ?>+ −
<%+ −
// process request+ −
// get digilib config+ −
digilib.servlet.DigilibConfiguration dlConfig = docBean.getDlConfig();+ −
// parsing the query+ −
digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request);+ −
docBean.setRequest(dlRequest);+ −
+ −
%><!-- Automatically generated XML snippet with document parameters -->+ −
<document-parameters>+ −
<%+ −
Object[] keys = dlRequest.keySet().toArray();+ −
java.util.Arrays.sort(keys);+ −
int l = keys.length;+ −
for (int i = 0; i < l; i++) {+ −
String key = (String) keys[i];+ −
String val = dlRequest.getAsString(key);+ −
if (val.length() == 0) {+ −
val = "";+ −
}+ −
%> <parameter name="<%= key %>" value="<%= val %>"/>+ −
<%+ −
}+ −
%></document-parameters>+ −