<%@ page import=" org.osgi.service.cm.ConfigurationAdmin, org.osgi.service.cm.Configuration, java.util.Dictionary, java.util.Hashtable "%> <%@page session="false"%> <%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%> <% out.println("
");
final String JSPConfig = "org.apache.sling.scripting.jsp.JspScriptEngineFactory";
ConfigurationAdmin ca = sling.getService(ConfigurationAdmin.class);
out.println("ca=" + ca);
final Configuration c = ca.getConfiguration(JSPConfig);
out.println("c=" + c);

Dictionary d = c.getProperties();
if(d == null) {
    d = new Hashtable();
}

final String interval = "jasper.modificationTestInterval";
out.println(interval + " was " + d.get(interval));
d.put(interval, new Integer(0));
out.println(interval + " is now " + d.get(interval));

final String dev = "jasper.development";
out.println(dev + " was " + d.get(dev));
d.put(dev, new Boolean(true));
out.println(dev + " is now " + d.get(dev));

c.setBundleLocation(null);
c.update(d);
out.println("Configuration updated: " + JSPConfig);

out.println("
"); %>