Mercurial > hg > digilib-old
view client/digitallibrary/dlInfo-js.jsp @ 490:fc322b1af8ec
new servlet version 1.7.0b
- changed semaphore code to use Java 1.5
- changed digilib worker to do write the output outside the semaphore
author | robcast |
---|---|
date | Thu, 02 Aug 2007 19:22:47 +0200 |
parents | a6bd80bcd28b |
children | bc9196347188 |
line wrap: on
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); } } %><% // parsing the query digilib.servlet.DigilibRequest dlRequest = new digilib.servlet.DigilibRequest(request); docBean.setRequest(dlRequest); %> // Automatically generated JavaScript snippet with 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 = ""; } %>var dl_<%= key %> = "<%= val %>"; <% } %>