Mercurial > hg > digilib-old
view client/digitallibrary/dlInfo-xml.jsp @ 890:613c2089bc7a jquery
use setstate in redisplay instead of pushstate as long as we don't deal with popstate (i.e. history-back).
author | robcast |
---|---|
date | Thu, 07 Apr 2011 10:22:26 +0200 |
parents | 0885f5ca5b24 |
children |
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); } } %><?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.getParams().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>