Commit in SlicDiagWeb on MAIN
pom.xml+152added 1.1
src/main/resources/hep/aida/ref/plotter/style/registry/SlicDiagWeb.xml+250added 1.1
src/main/webapp/aidaTree.jsp+39added 1.1
               /dbFrame.jsp+191added 1.1
               /dbSelect.jsp+111added 1.1
               /dbTable.jsp+56added 1.1
               /index.html+63added 1.1
               /main_icon.jpg[binary]added 1.1
               /plotFrame.jsp+228added 1.1
               /tabs.jsp+29added 1.1
               /topFrame.jsp+22added 1.1
               /treeFrame.jsp+48added 1.1
src/main/webapp/META-INF/context.xml+7added 1.1
src/main/webapp/WEB-INF/web.xml+119added 1.1
src/main/webapp/css/displaytag.css+109added 1.1
+1424
15 added files
add all files

SlicDiagWeb
pom.xml added at 1.1
diff -N pom.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pom.xml	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,152 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.freehep.slic</groupId>
+    <artifactId>SlicDiagWeb</artifactId>
+    <packaging>war</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>SLIC Diagnostics Web</name>
+    <url>http://maven.apache.org</url>
+    <description>A web application for displaying SLIC diagnostic plots and allowing comparison
+    between different releases.</description> 
+    
+    <repositories>
+        <repository>
+            <id>freehep-maven</id>
+            <name>Maven FreeHEP</name>
+            <url>http://java.freehep.org/maven2</url>
+        </repository>
+    </repositories>
+    
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.2</version>
+            <scope>test</scope>
+        </dependency>
+        
+        <!--  Driver for MySQL  -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.0.5</version>
+        </dependency>
+        
+        <!--  Library to display HTML Tables  -->
+        <dependency>
+            <groupId>displaytag</groupId>
+            <artifactId>displaytag</artifactId>
+            <version>1.1</version>
+        </dependency>
+        
+        <!-- AIDA TLD and JAIDA tags here  -->
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-jaida-xml</artifactId>
+            <version>3.3.0-6-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>jas-plotter</artifactId>
+            <version>2.2.3</version>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-jaida-root</artifactId>
+            <version>3.3.0-6-SNAPSHOT</version>
+            <scope>build</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-aidatld</artifactId>
+            <version>1.2.6-SNAPSHOT</version>
+            <scope>build</scope>
+        </dependency>
+        
+        <!-- FreeHEP Graphics and export libs here  -->
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphics2d</artifactId>
+            <version>2.1.1</version>
+            <scope>build</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphicsio</artifactId>
+            <version>2.1.1</version>
+            <scope>build</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphicsio-pdf</artifactId>
+            <version>2.1.1</version>
+             <scope>build</scope>
+       </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphicsio-ps</artifactId>
+            <version>2.1.1</version>
+            <scope>build</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphicsio-svg</artifactId>
+            <version>2.1.1</version>
+            <scope>build</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.freehep</groupId>
+            <artifactId>freehep-graphicsio-swf</artifactId>
+            <version>2.1.1</version>
+            <scope>build</scope>
+        </dependency>
+        
+        
+        <!-- Force the latest version of commons-collections -->
+        <dependency>
+            <groupId>commons-collections</groupId> 
+            <artifactId>commons-collections</artifactId> 
+            <version>3.1</version> 
+        </dependency>
+        
+        <!-- need this file to use standard JSTL tag libraries -->
+        <dependency>
+            <groupId>taglibs</groupId>
+            <artifactId>standard</artifactId>
+            <version>1.1.2</version>
+            <scope>build</scope>
+        </dependency>
+        
+        <!-- do not copy those filese into the WAR -->
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>jsp-api</artifactId>
+            <version>2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        
+    </dependencies>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>tomcat-maven-plugin</artifactId>
+                <configuration>
+                    <url>http://localhost:8084/manager</url>
+                    <!-- <warFile>C:/work/Projects/Maven2WebApp/target/Maven2WebApp.war</warFile> -->
+                    <!-- <warDirectory>/C:/Documents and Settings/serbo/.netbeans/5.5/apache-tomcat-5.5.17_base/work/Catalina/localhost</warDirectory> -->
+                    <server>bundled</server>
+                </configuration>
+            </plugin>
+        </plugins>
+        <finalName>SlicDiagWeb</finalName>
+    </build>
+</project>

SlicDiagWeb/src/main/resources/hep/aida/ref/plotter/style/registry
SlicDiagWeb.xml added at 1.1
diff -N SlicDiagWeb.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ SlicDiagWeb.xml	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,250 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE aidaStyleStore SYSTEM "http://java.freehep.org/schemas/jaida/1.0/StyleStoreDTD.dtd">
+<aidaStyleStore storeName="SlicDiagWebStore"
+  storeType="XMLStyleStore" isReadOnly="true">
+  <aidaStyleStoreEntry entryName="Web-H1D-Overlay"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayIndex == 1 &amp;&amp; (ObjectAIDAType.endsWith(&quot;IHistogram1D&quot;) || ObjectAIDAType.endsWith(&quot;ICloud1D&quot;) || ObjectAIDAType.endsWith(&quot;IProfile1D&quot;))"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="lineStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="red"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="fillStyle">
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="errorBarStyle">
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-H1D-Overlay"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+  <aidaStyleStoreEntry entryName="Web-H1D"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayTotal &gt;= 1 &amp;&amp; (ObjectAIDAType.endsWith(&quot;IHistogram1D&quot;) || ObjectAIDAType.endsWith(&quot;ICloud1D&quot;) || ObjectAIDAType.endsWith(&quot;IProfile1D&quot;))"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="lineStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="black"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="fillStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="255, 153, 153, 255"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="black"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+          <aidaStyleAttribute attributeName="opacity"
+            attributeValue="1.0"/>
+          <aidaStyleAttribute attributeName="shape"
+            attributeValue="dot" attributeOptions="&quot;dot&quot;, &quot;box&quot;, &quot;triangle&quot;, &quot;diamond&quot;, &quot;star&quot;, &quot;verticalLine&quot;, &quot;horizontalLine&quot;, &quot;cross&quot;, &quot;circle&quot;, &quot;square&quot;"/>
+          <aidaStyleAttribute attributeName="size"
+            attributeValue="6"/>
+        </aidaStyle>
+        <aidaStyle type="outlineStyle">
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="errorBarStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="black"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+          <aidaStyleAttribute
+            attributeName="errorBarDecoration" attributeValue="0.0"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-H1D"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+  <aidaStyleStoreEntry entryName="Web-H2D-Overlay"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayIndex == 1 &amp;&amp; (ObjectAIDAType.endsWith(&quot;IHistogram2D&quot;) || ObjectAIDAType.endsWith(&quot;ICloud2D&quot;) || ObjectAIDAType.endsWith(&quot;IProfile2D&quot;))"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="red"/>
+          <aidaStyleAttribute attributeName="shape"
+            attributeValue="box" attributeOptions="&quot;dot&quot;, &quot;box&quot;, &quot;triangle&quot;, &quot;diamond&quot;, &quot;star&quot;, &quot;verticalLine&quot;, &quot;horizontalLine&quot;, &quot;cross&quot;, &quot;circle&quot;, &quot;square&quot;"/>
+          <aidaStyleAttribute attributeName="colorRotate"
+            attributeValue="fuchsia, green, orange, cyan, blue, red"/>
+          <aidaStyleAttribute attributeName="size"
+            attributeValue="4"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-H2D-Overlay"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+  <aidaStyleStoreEntry entryName="Web-H2D"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayTotal &gt;= 1 &amp;&amp; (ObjectAIDAType.endsWith(&quot;IHistogram2D&quot;) || ObjectAIDAType.endsWith(&quot;ICloud2D&quot;) || ObjectAIDAType.endsWith(&quot;IProfile2D&quot;))"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="blue"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+          <aidaStyleAttribute
+            attributeName="shapeRotateMethod" attributeValue="regionOverlayIndex"
+            attributeOptions="&quot;globalIndex&quot;, &quot;regionOverlayIndex&quot;"/>
+          <aidaStyleAttribute attributeName="size"
+            attributeValue="4"/>
+          <aidaStyleAttribute attributeName="shape"
+            attributeValue="dot" attributeOptions="&quot;dot&quot;, &quot;box&quot;, &quot;triangle&quot;, &quot;diamond&quot;, &quot;star&quot;, &quot;verticalLine&quot;, &quot;horizontalLine&quot;, &quot;cross&quot;, &quot;circle&quot;, &quot;square&quot;"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-H2D"/>
+      <aidaStyleAttribute attributeName="hist2DStyle"
+        attributeValue="box" attributeOptions="&quot;box&quot;, &quot;ellipse&quot;, &quot;colorMap&quot;"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+  <aidaStyleStoreEntry entryName="Web-DPS-Overlay"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayIndex == 1 &amp;&amp; ObjectAIDAType.endsWith(&quot;DataPointSet&quot;)"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="red"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="errorBarStyle">
+          <aidaStyleAttribute attributeName="typeRotate"
+            attributeValue="solid, dotted, dashed, dotdash"/>
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="red"/>
+          <aidaStyleAttribute
+            attributeName="typeRotateMethod" attributeValue="regionOverlayIndex"
+            attributeOptions="&quot;globalIndex&quot;, &quot;regionOverlayIndex&quot;"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-DPS-Overlay"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+  <aidaStyleStoreEntry entryName="Web-DPS"
+    entryType="hep.aida.IHistogram1D">
+    <aidaStyleRule
+      ruleValue="OverlayTotal &gt;= 1 &amp;&amp; ObjectAIDAType.endsWith(&quot;DataPointSet&quot;)"/>
+    <aidaPlotterStyle>
+      <aidaStyle type="dataStyle">
+        <aidaStyle type="markerStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="blue"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+          <aidaStyleAttribute attributeName="shape"
+            attributeValue="dot" attributeOptions="&quot;dot&quot;, &quot;box&quot;, &quot;triangle&quot;, &quot;diamond&quot;, &quot;star&quot;, &quot;verticalLine&quot;, &quot;horizontalLine&quot;, &quot;cross&quot;, &quot;circle&quot;, &quot;square&quot;"/>
+          <aidaStyleAttribute attributeName="shapeRotate"
+            attributeValue="dot, box, triangle, diamond, star, circle, square"/>
+          <aidaStyleAttribute
+            attributeName="colorRotateMethod" attributeValue="regionOverlayIndex"
+            attributeOptions="&quot;globalIndex&quot;, &quot;regionOverlayIndex&quot;"/>
+          <aidaStyleAttribute attributeName="size"
+            attributeValue="6"/>
+        </aidaStyle>
+        <aidaStyle type="outlineStyle">
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+        </aidaStyle>
+        <aidaStyle type="errorBarStyle">
+          <aidaStyleAttribute attributeName="color"
+            attributeValue="blue"/>
+          <aidaStyleAttribute attributeName="isVisible"
+            attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+          <aidaStyleAttribute attributeName="opacity"
+            attributeValue="1.0"/>
+          <aidaStyleAttribute attributeName="type"
+            attributeValue="solid" attributeOptions="&quot;solid&quot;, &quot;dotted&quot;, &quot;dashed&quot;, &quot;dotdash&quot;"/>
+          <aidaStyleAttribute
+            attributeName="typeRotateMethod" attributeValue="regionOverlayIndex"
+            attributeOptions="&quot;globalIndex&quot;, &quot;regionOverlayIndex&quot;"/>
+          <aidaStyleAttribute
+            attributeName="colorRotateMethod" attributeValue="regionOverlayIndex"
+            attributeOptions="&quot;globalIndex&quot;, &quot;regionOverlayIndex&quot;"/>
+          <aidaStyleAttribute
+            attributeName="errorBarDecoration" attributeValue="0.0"/>
+        </aidaStyle>
+      </aidaStyle>
+      <aidaStyle type="statisticsBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="true" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyle type="legendBoxStyle">
+        <aidaStyleAttribute attributeName="isVisible"
+          attributeValue="false" attributeOptions="&quot;true&quot;, &quot;false&quot;"/>
+      </aidaStyle>
+      <aidaStyleAttribute attributeName="plotterStyleName"
+        attributeValue="SlicDiagWebStore.Web-DPS"/>
+    </aidaPlotterStyle>
+  </aidaStyleStoreEntry>
+</aidaStyleStore>

SlicDiagWeb/src/main/webapp
aidaTree.jsp added at 1.1
diff -N aidaTree.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ aidaTree.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,39 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
+<%@taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
+<%@taglib prefix="aida" uri="http://aida.freehep.org/jsp20" %>
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>AIDA Tree</title>
+        <base target="_self">
+    </head>
+    <body>
+        AIDA Tree TEST4
+        <p/>
+        <c:set var="treeName" value="C:/work/Data/testAIDAFile.aida"/>
+        Setting the value: "Creating Tree: "
+        <c:out value='${treeName}'/>
+        <br>
+        <br>
+        
+        <p>Test1: AIDA Tree</p>
+        <aida:tree storeName="" storeType="xml" />            
+        
+        <aida:displaytree storeName="C:/work/Data/testAIDAFile.aida" />            
+        
+        <aida:objects storeName="C:/work/Data/testAIDAFile.aida"
+                      path="/Histograms/Histogram 1D"
+                      var="h1d">
+        </aida:objects>
+        
+        <% 
+        Object obj = pageContext.getAttribute("treeName");
+        out.println(obj);
+        %>
+        
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
dbFrame.jsp added at 1.1
diff -N dbFrame.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dbFrame.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,191 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
+<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
+<%@taglib prefix="tab" uri="http://java.freehep.org/tabs-taglib" %>
+<%@page isELIgnored="false" %>
+
+<html>
+    <head>
+        <SCRIPT TYPE="text/javascript">
+            var emptyString = /^\s*$/ ;
+            var separator = "_";
+
+            function trim(str) {
+              return str.replace(/^\s+|\s+$/g, '');
+            }
+
+            function fillAfterFileUrlChange(el) {
+                // not available on this browser - no parsing
+                if (!document.getElementById) return true;  
+
+                theForm = el.form;
+
+                // file_utl field is empty, do nothing
+                if (!validatePresent(theForm.file_url)) { return true; }
+
+                // Other fields must be empty - don't want to overwrite user input
+                if (!validatePresent(theForm.slic_version) && 
+                    !validatePresent(theForm.geant4_version)&& 
+                    !validatePresent(theForm.detector)&& 
+                    !validatePresent(theForm.event_type)) {
+
+                    // Try to parce the file name here and fill other fields
+                    var fileName = trim(theForm.file_url.value);
+
+                    // Take file type off
+                    var index = fileName.lastIndexOf(".")
+                    if (index > 0) fileName = fileName.substring(0, index);
+
+                    // Parce the event_type out
+                    var index1 = fileName.indexOf("_SLIC");
+                    if (index1 > 0) {
+                        theForm.event_type.value = fileName.substring(0, index1);
+                        fileName = fileName.substring(index1 + 1);
+                    } else {
+                        return true;
+                    }
+
+                    var fields = fileName.split(separator);
+                    if (fields.length > 0) theForm.slic_version.value = fields[0];
+                    if (fields.length > 1) theForm.geant4_version.value = fields[1].substring(7);
+                    if (fields.length > 2) theForm.detector.value = fields[2];
+                }
+                return true;    
+            }
+
+            function validatePresent(valfield) 
+            {
+              if (emptyString.test( trim(valfield.value) ) ) {
+                //alert("Empty!");
+                return false;
+              }
+              return true;
+            }
+
+            function validateOnAddRowSubmit(theForm) {
+                // not available on this browser - no validation
+                if (!document.getElementById) return true;  
+
+                var elem;
+                var errs=0;
+                var message = ""
+                if (!validatePresent(theForm.file_url)) { errs += 1; message += " :: file_url"; }
+                if (!validatePresent(theForm.slic_version)) { errs += 1; message += " :: slic_version"; }
+                if (!validatePresent(theForm.geant4_version)) { errs += 1; message += " :: geant4_version"; }
+                if (!validatePresent(theForm.detector)) { errs += 1; message += " :: detector"; }
+                if (!validatePresent(theForm.event_type)) { errs += 1; message += " :: event_type"; }
+
+                if (errs>=1)  alert('Fields can not be empty: '+message);
+
+                return (errs==0);
+            };
+        </SCRIPT>
+        
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>DB Table</title>
+        <base target="_self">
+        <link type="text/css" href="css/displaytag.css" rel="stylesheet">
+    </head>
+    <body>
+        <a href="index.html">SLIC Test Home</a><br>
+        <h3>SLIC DB Management 
+            <c:if test="${! empty param.action}">
+                action=${param.action}
+            </c:if>
+        </h3>
+        
+        <form name="addRowForm" action="dbFrame.jsp">
+            <input type="radio" name="group1" value="browse" checked/>Browse
+                                                                     <input type="radio" name="group1" value="add" />Add Row
+            <input type="radio" name="group1" value="delete" />Delete Rows
+            <input type="submit" value="Go there"/>
+        </form>
+        
+        <!-- Adding row -->
+        <c:if test="${param.action == \"add\"}">
+            <br>       Adding row ...
+            <sql:update var="sqlUpdate">
+                insert into SlicData values ('NULL','${param.file_url}','${param.slic_version}','${param.geant4_version}','${param.detector}','${param.event_type}');
+            </sql:update>
+            result ${sqlUpdate}
+        </c:if>
+        
+        <!-- Deleting selected rows -->
+        <c:if test="${param.action == \"delete\"}">
+            <c:forEach var="tmpId" items="${paramValues.rowId}">
+                <br>       Deleting row ${tmpId} ...
+                <sql:update var="sqlUpdate">
+                    delete from SlicData where id=${tmpId}
+                </sql:update>
+                result ${sqlUpdate}
+            </c:forEach>
+        </c:if>
+        
+        <sql:query var="data">select * from SlicData</sql:query>
+        
+        <br>
+        <c:set var="ds" value="1"/>
+        <c:if test="${param.group1 == \"delete\"}">
+            <c:set var="ds" value="2"/>
+        </c:if>
+        <form name="dataSelectForm" action="dbFrame.jsp">
+            <display:table id="rowObject" name="${data.rows}" defaultsort="${ds}" defaultorder="ascending">
+                <c:if test="${param.group1 == \"delete\"}">
+                    <display:column class="leftAligned" title="Sel" sortable="true" headerClass="sortable">
+                        <c:set var="isSetChosen" value=""/>
+                        <c:choose>
+                            <c:when test="${!empty paramValues.rowId}">
+                                <c:forEach var="tmpID" items="${paramValues.rowId}">
+                                    <c:if test="${tmpID == rowObject.id}">
+                                        <c:set var="isSetChosen" value="checked"/>
+                                    </c:if>
+                                </c:forEach>
+                            </c:when>
+                        </c:choose>
+                        <input type="checkbox" name="rowId" value="${rowObject.id}" <c:out value="${isSetChosen}"/>
+                    </display:column>
+                </c:if>
+                <display:column property="id" title="ID" sortable="true" headerClass="sortable"/>
+                <display:column property="detector" sortable="true" headerClass="sortable"/>
+                <display:column property="event_type" sortable="true" headerClass="sortable"/>
+                <display:column property="geant4_version" sortable="true" headerClass="sortable"/>
+                <display:column property="slic_version" sortable="true" headerClass="sortable"/>
+                <display:column property="file_url" sortable="true" headerClass="sortable"/>
+            </display:table>
+            <c:if test="${param.group1 == \"delete\"}">
+                <input type="hidden" name="action" value="delete"/>
+                <input style="background-color: orange;" type="submit" value="Delete Selected Rows" onsubmit="return validateOnAddSubmit(this)"/>
+            </c:if>
+        </form>
+        <br>
+        
+        <c:if test="${param.group1 == \"add\"}">
+            <form name="addRowForm" action="dbFrame.jsp" onsubmit="return validateOnAddRowSubmit(this)">
+                <display:table id="col" name="${data.columnNames}" >
+                    
+                    <display:column title="Name">
+                        ${col}
+                    </display:column>
+                    <display:column title="Value">
+                        <c:if test="${!(col == \"id\")}">
+                            <c:set var="size" value="15" scope="page"/>
+                            <c:set var="onCh" value="" scope="page"/>
+                            <c:if test="${col == \"file_url\"}">
+                                <c:set var="size" value="100" scope="page"/>
+                                <c:set var="onCh" value="fillAfterFileUrlChange(this)" scope="page"/>
+                            </c:if>
+                            <input type="text" size="${size}" name="${col}" onchange="${onCh}"/>
+                        </c:if>
+                    </display:column>
+                </display:table>
+                <input type="hidden" name="action" value="add"/>
+                <input type="reset" value="Clear Form"/>
+                <input style="background-color: orange;" type="submit" value="Add Row"/>
+            </form>
+        </c:if>
+        
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
dbSelect.jsp added at 1.1
diff -N dbSelect.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dbSelect.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,111 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
+<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
+<%@ taglib prefix="aida" uri="http://aida.freehep.org/jsp20" %>
+<%@page isELIgnored="false" %>
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>DB Select</title>
+        <base target="_top">
+        <link type="text/css" href="css/displaytag.css" rel="stylesheet">
+        <SCRIPT TYPE="text/javascript">
+            function selectType(el) {
+                var theForm = el.form;
+                var index = el.selectedIndex;
+                var text = el.options[index].text;
+                theForm.selectedFileId.options.length = 0;
+                theForm.selectedRefId.options.length = 0;
+                theForm.selectedRefId.options[0] = new Option(theForm.no_selection.value, theForm.no_selection.value);
+                var n = 0;
+                var tmp = "";
+                for (var i=0; i<theForm.allFiles.options.length; i++) {
+                        tmp = tmp + "\n ** "+i+"  "+theForm.allTypes.options[i].text;
+                    if (text == theForm.full_selection.value || theForm.allTypes.options[i].text == text) {
+                        theForm.selectedFileId.options[n] = new Option(theForm.allFiles.options[i].text, theForm.allFiles.options[i].text);
+                        theForm.selectedRefId.options[n+1] = new Option(theForm.allFiles.options[i].text, theForm.allFiles.options[i].text);
+                        n++;
+                    }
+                }
+                //alert("el.value="+text+"\n **** "+tmp);
+            }
+            
+                                                       </SCRIPT>
+    </head>
+    <body>
+        <a href="index.html">SLIC Test Home</a><br>
+        
+        <!-- Select possible files here -->
+        <sql:query var="data">select * from SlicData</sql:query>
+        
+        <sql:query var="type">select distinct event_type from SlicData</sql:query>
+        
+        <form name="dataSelectForm" action="topFrame.jsp">
+            <TABLE>
+                <TR>
+                    <TD>
+                        <button  style="background-color: orange;" type="submit">Update</button>
+                    </TD>
+                    <TD>
+                        File:
+                    </TD>                    
+                    <TD>
+                        <SELECT name="selectedFileId"> 
+                            <c:forEach var="rowObject" items="${data.rows}">
+                                <OPTION <c:if test="${selectedFileId == rowObject.file_url}"> selected</c:if> >
+                                    <c:out value="${rowObject.file_url}"/>
+                                </OPTION> 
+                            </c:forEach>                  
+                        </SELECT>
+                    </TD>
+                </TR>
+                <TR>
+                    <TD>
+                        <SELECT name="typeId" onchange="selectType(this)"> 
+                            <OPTION>${initParam.full_selection}</OPTION>
+                            <c:forEach var="typeObject" items="${type.rows}">
+                                <OPTION <c:if test="${selectedTypeId == typeObject.event_type}"> selected</c:if> >
+                                    <c:out value="${typeObject.event_type}"/>
+                                </OPTION> 
+                            </c:forEach>                  
+                        </SELECT>
+                    </TD>
+                    <TD>
+                        Ref:
+                    </TD>                    
+                    <TD>
+                        <SELECT name="selectedRefId"> 
+                            <OPTION>${initParam.no_selection}</OPTION>
+                            <c:forEach var="rowObject" items="${data.rows}">
+                                <OPTION <c:if test="${selectedRefId == rowObject.file_url}"> selected</c:if> >
+                                    <c:out value="${rowObject.file_url}"/>
+                                </OPTION> 
+                            </c:forEach>                  
+                        </SELECT>
+                    </TD>                    
+                </TR>
+                <SELECT name="allFiles" style="display: none;"> 
+                    <c:forEach var="rowObject" items="${data.rows}">
+                        <OPTION>${rowObject.file_url}
+                        </OPTION> 
+                    </c:forEach>                  
+                </SELECT>
+                <SELECT name="allTypes" style="display: none;"> 
+                    <c:forEach var="rowObject" items="${data.rows}">
+                        <OPTION>${rowObject.event_type}
+                        </OPTION> 
+                    </c:forEach>                  
+                </SELECT>
+                <input type="hidden" name="no_selection" value="${initParam.no_selection}"/>
+                <input type="hidden" name="full_selection" value="${initParam.full_selection}"/>
+                </TD>                    
+                </TR>
+            </TABLE>  
+        </form>
+        
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
dbTable.jsp added at 1.1
diff -N dbTable.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dbTable.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,56 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
+<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
+<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
+<%@ taglib prefix="aida" uri="http://aida.freehep.org/jsp20" %>
+<%@page isELIgnored="false" %>
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>DB Table</title>
+        <base target="_self">
+      <link type="text/css" href="css/displaytag.css" rel="stylesheet">
+    </head>
+    <body>
+        DB Table TEST2
+        <p/>
+
+        <sql:query var="data">select * from SlicData</sql:query>
+        
+        Got DB Data: 
+        
+        <c:out value='${data.rows}'/>
+        <br>
+        <c:out value='Got rows: ${data.rowCount}'/>
+        <br>
+        <display:table name="pageScope.data.rows" defaultsort="1" defaultorder="descending">
+            <display:column property="id" title="ID" sortable="true" headerClass="sortable"/>
+            <display:column property="detector" sortable="true" headerClass="sortable"/>
+            <display:column property="event_type" sortable="true" headerClass="sortable"/>
+            <display:column property="geant4_version" sortable="true" headerClass="sortable"/>
+            <display:column property="slic_version" sortable="true" headerClass="sortable"/>
+            <display:column property="file_url" sortable="true" headerClass="sortable"/>
+        </display:table>
+        <br>
+        
+        
+        <% 
+        Object obj = pageContext.getAttribute("data");
+        java.util.SortedMap[] map = ((org.apache.taglibs.standard.tag.common.sql.ResultImpl) obj).getRows();
+        for (int i=0; i<map.length; i++) {
+            java.util.Iterator it = map[i].keySet().iterator();
+            out.println("map "+i);
+            while (it.hasNext()) {
+                Object key = it.next();
+                Object val = map[i].get(key);
+                out.println("\tkey="+key+",  val="+val);
+            }
+        }
+        //out.println(((java.util.List) obj).get(0).toString());
+        %>
+        
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
index.html added at 1.1
diff -N index.html
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ index.html	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,63 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>SLIC Test Home Page</title>
+        <base target="_self">
+    </head>
+    <body>
+        <h1>
+            <img src="main_icon.jpg" alt="Slick Tool"> 
+            SLIC Test Home Page
+        </h1>
+        
+        <font size=+1>
+            <ul>
+                <li><a href="topFrame.jsp">See Test Plots</a></li>
+                <li><a href="dbFrame.jsp">Manage SlicData Database</a></li>
+            </ul>
+        </font>
+<!--
+                <aida:style>
+                    <aida:style type="legendBox">
+                        <aida:attribute name="isVisible" value="false"/>
+                    </aida:style>
+                </aida:style>
+    
+<aida:style>
+    <aida:style type="marker">
+        <aida:attribute name="isVisible" value="true"/>
+        <aida:attribute name="shape" value="dot"/>
+        <aida:attribute name="size" value="10"/>
+        <aida:attribute name="color" value="black"/>
+    </aida:style>
+    <aida:style type="fill">
+        <aida:attribute name="isVisible" value="false"/>
+    </aida:style>
+    <aida:style type="errorBar">
+        <aida:attribute name="isVisible" value="true"/>
+    </aida:style>
+    <aida:style type="line">
+        <aida:attribute name="isVisible" value="false"/>
+    </aida:style>
+</aida:style>
+<aida:style>
+    <aida:style type="marker">
+        <aida:attribute name="isVisible" value="false"/>
+    </aida:style>
+    <aida:style type="fill">
+        <aida:attribute name="isVisible" value="false"/>
+    </aida:style>
+    <aida:style type="errorBar">
+        <aida:attribute name="isVisible" value="false"/>
+    </aida:style>
+    <aida:style type="line">
+        <aida:attribute name="isVisible" value="true"/>
+        <aida:attribute name="color" value="red"/>
+    </aida:style>
+</aida:style>
+    
+-->
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
plotFrame.jsp added at 1.1
diff -N plotFrame.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ plotFrame.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,228 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
+<%@taglib prefix="aida" uri="http://aida.freehep.org/jsp20" %>
+<%@page isELIgnored="false" %>
+
+<head>
+    <title>AIDA Plot Frame</title>
+    <base target="_self">
+    <SCRIPT TYPE="text/javascript">
+        function showOrHide(check, id) {
+          var theForm = check.form;
+          var folder = document.getElementById(id);
+          if (folder == null) {
+            return false;
+          }
+          if (theForm.useStyle.checked) {
+            folder.style.display = "block";
+          } else {
+            folder.style.display = "none";
+          }
+          plotStyle(check);
+        }
+        function plotStyle(check) {
+          var theForm = check.form;
+          
+          if (theForm.useStyle.checked) theForm.useStyle.value = "true";
+          else theForm.useStyle.value = "false";
+          
+          if (theForm.showStatistics.checked) theForm.showStatistics.value = "true";
+          else theForm.showStatistics.value = "false";
+          
+          if (theForm.showLegend.checked) theForm.showLegend.value = "true";
+          else theForm.showLegend.value = "false";
+          
+          theForm.submit();
+        }
+    </SCRIPT>
+</head>
+<body>
+    
+    <!-- Set User Plotter Style Here -->
+    
+    <!-- Set session variables from the form -->
+    <!-- State of the session variable changes only by request parameter -->
+    <c:if test="${!empty param.plotStyleForm}">
+        <c:set var="usePlotStyle" value="false" scope="session"/>
+        <c:set var="showPlotStatistics" value="false" scope="session"/>
+        <c:set var="showPlotLegend" value="false" scope="session"/>
+        <c:set var="showPlotNormalization" value="${initParam.no_selection}" scope="session"/>
+        <c:set var="showPlotMarkerSize" value="${initParam.no_selection}" scope="session"/>
+        <c:if test="${!empty param.useStyle}">
+            <c:set var="usePlotStyle" value="${param.useStyle}" scope="session"/>
+        </c:if>
+        <c:if test="${!empty param.showStatistics}">
+            <c:set var="showPlotStatistics" value="${param.showStatistics}" scope="session"/>
+        </c:if>
+        <c:if test="${!empty param.showLegend}">
+            <c:set var="showPlotLegend" value="${param.showLegend}" scope="session"/>
+        </c:if>
+        <c:if test="${!empty param.showNormalization}">
+            <c:set var="showPlotNormalization" value="${param.showNormalization}" scope="session"/>
+        </c:if>
+        <c:if test="${!empty param.showMarkerSize}">
+            <c:set var="showPlotMarkerSize" value="${param.showMarkerSize}" scope="session"/>
+        </c:if>
+    </c:if>
+    
+    <!-- Now set page variables from the session variables -->
+    <!-- Beware that session variables can be not set -->
+        
+    <c:set var="pageStylePanelDisplay" value="block" scope="page"/>
+    <c:set var="pageUseStyle" value="checked" scope="page"/>
+    <c:set var="pageShowStatistics" value="checked" scope="page"/>
+    <c:set var="pageShowLegend" value="checked" scope="page"/>
+    <c:if test="${empty usePlotStyle || usePlotStyle == 'false'}">
+        <c:set var="pageUseStyle" value="" scope="page"/>
+        <c:set var="pageStylePanelDisplay" value="none" scope="page"/>
+    </c:if>
+    <c:if test="${empty showPlotStatistics || showPlotStatistics == \"false\"}">
+        <c:set var="pageShowStatistics" value="" scope="page"/>
+    </c:if>
+    <c:if test="${empty showPlotLegend || showPlotLegend == \"false\"}">
+        <c:set var="pageShowLegend" value="" scope="page"/>
+    </c:if>
+    <!--
+    
+    <br>
+    usePlotStyle=${usePlotStyle} <br>
+    showPlotStatistics=${showPlotStatistics} <br>
+    showPlotLegend=${showPlotLegend} <br>
+    showPlotNormalization=${showPlotNormalization} <br>
+    
+    <br>
+    param.plotStyleForm=${param.plotStyleForm} <br>
+    param.useStyle=${param.useStyle} <br>
+    param.showStatistics=${param.showStatistics} <br>
+    param.showLegend=${param.showLegend} <br><br>
+    param.showNormalization=${param.showNormalization} <br><br>
+    
+    pageUseStyle=${pageUseStyle} <br>
+    pageStylePanelDisplay=${pageStylePanelDisplay} <br>
+    pageShowStatistics=${pageShowStatistics} <br>
+    pageShowLegend=${pageShowLegend} <br>
+    <br>
+    -->
+    
+    <!-- End User Plotter Style -->
+    
+    <c:set var="aidaPath" value="${param.leafHref}" scope="page"/>
+    
+    <form name="plotStyleForm" action="plotFrame.jsp">
+        <TABLE CELLPADDING="0" CELLSPACING="0" border="0">
+            <TR><TD >
+                    <input type="checkbox" name="useStyle" ${pageUseStyle} onClick="showOrHide(this, 'stylePanel')">Change Plot Style&nbsp;
+                </TD><TD>
+                    <div id="stylePanel" style="display: ${pageStylePanelDisplay};">
+                        <TABLE  bgcolor="orange" border="2"> 
+                            <TR>
+                                <TD title="Show Statistics">
+                                    <input type="checkbox" name="showStatistics" ${pageShowStatistics} onClick="plotStyle(this)">Statistics&nbsp;
+                                </TD>
+                                <TD title="Show Legend">
+                                    <input type="checkbox" name="showLegend" ${pageShowLegend} onClick="plotStyle(this)">Legend&nbsp;
+                                </TD>
+                                <TD title="Select Normalization for the Refrence Plot">
+                                    Norm:&nbsp;
+                                    <select name="showNormalization" onChange="plotStyle(this)">
+                                        <option <c:if test="${showPlotNormalization == initParam.no_selection}"> selected</c:if> >
+                                            ${initParam.no_selection}
+                                        </option>
+                                        <option <c:if test="${showPlotNormalization == 'Area'}"> selected</c:if> >
+                                            Area
+                                        </option>
+                                        <option <c:if test="${showPlotNormalization == 'Entries'}"> selected</c:if> >
+                                            Entries
+                                        </option><!--
+                                        <option <c:if test="${showPlotNormalization == 'MaxBin'}"> selected</c:if> >
+                                            MaxBin
+                                        </option>
+                                        -->
+                                    </select>
+                                </TD>
+                                <TD title="Select Marker Size">
+                                    Marker Size:&nbsp;
+                                    <select name="showMarkerSize" onChange="plotStyle(this)">
+                                        <option <c:if test="${showPlotMarkerSize == initParam.no_selection}"> selected</c:if> >
+                                            ${initParam.no_selection}
+                                        </option>
+                                        <c:forEach var="i" begin="0" end="10" step="1">
+                                            <option <c:if test="${showPlotMarkerSize != initParam.no_selection && showPlotMarkerSize == i}"> selected</c:if> >
+                                                ${i}
+                                            </option>
+                                        </c:forEach>
+                                    </select>
+                                </TD>
+                            <input type="hidden" name="leafHref" value="${aidaPath}"/>
+                            <input type="hidden" name="plotStyleForm" value="${true}"/>
+                          </TR>
+                        </TABLE> 
+                    </div>
+            </TD></TR>
+        </TABLE>
+    </form>
+    
+    <h3><c:out value="Path=${aidaPath}"/></h3>
+    <c:if test="${!empty selectedFileId && !(selectedFileId == initParam.no_selection) && !(empty param.leafHref)}">        
+        
+        
+        <c:set var="aidaDataFile" value="${initParam.slic_file_base}/${selectedFileId}" scope="page"/>
+        <aida:objects storeName="${aidaDataFile}"
+                      path="${aidaPath}"
+                      var="aidaDataObject">
+        </aida:objects>
+        
+        <aida:plotter allowDownload="true" format="png">
+            <aida:region>
+                <c:if test="${!empty usePlotStyle && usePlotStyle != \"false\"}">
+                    <aida:style>
+                        <c:if test="${!empty showPlotMarkerSize && showPlotMarkerSize != initParam.no_selection}">
+                            <aida:style type="data">
+                                <aida:style type="marker">
+                                    <aida:attribute name="size" value="${showPlotMarkerSize}"/>
+                                </aida:style>
+                            </aida:style>
+                        </c:if>
+                        <aida:style type="statisticsBox">
+                            <aida:attribute name="isVisible" value="${showPlotStatistics}"/>
+                        </aida:style>
+                        <aida:style type="legendBox">
+                            <aida:attribute name="isVisible" value="${showPlotLegend}"/>
+                        </aida:style>
+                    </aida:style>
+                </c:if>
+                <aida:plot var="${aidaDataObject[0]}">
+                </aida:plot>
+                
+                
+                <c:if test="${!empty selectedRefId && !(selectedRefId == initParam.no_selection)}">        
+                    <c:set var="aidaRefFile" value="${initParam.slic_file_base}/${selectedRefId}" scope="page"/>
+                    <c:catch var="exception">
+                        <aida:objects storeName="${aidaRefFile}"
+                                      path="${aidaPath}"
+                                      var="aidaRefObject">
+                        </aida:objects>
+                        
+                        <aida:plot var="${aidaRefObject[0]}">
+                            <c:if test="${!empty usePlotStyle && usePlotStyle != \"false\"}">
+                                <aida:style>
+                                    <aida:attribute name="normalization" value="${showPlotNormalization}"/>
+                                </aida:style>
+                            </c:if>
+                        </aida:plot>
+                    </c:catch>
+                </c:if>
+            </aida:region>
+        </aida:plotter>
+        <p/>
+        <c:if test="${! empty exception}">
+            <br><b>*** Problem plotting reference histogram:</b><br>
+            ${exception.message}
+        </c:if>   
+    </c:if>
+    
+</body>
+</html>

SlicDiagWeb/src/main/webapp
tabs.jsp added at 1.1
diff -N tabs.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tabs.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,29 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
+<%@taglib prefix="tab" uri="http://java.freehep.org/tabs-taglib" %>
+<%@page isELIgnored="false" %>
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>SLIC Daig Page</title>
+    </head>
+    <body>
+        
+        <tab:tabs name="basic" param="basicTab">
+            <tab:tab name="Select Dataset" value="1" >
+                <p align="left">
+                    <jsp:include page='dbFrame.jsp'/>
+                </p>
+            </tab:tab>
+            <tab:tab name="View Plots" value="2">
+                <p align="left">
+                    <jsp:include page='treeFrame.jsp'/>
+                </p>
+            </tab:tab>
+        </tab:tabs>
+        
+         
+    </body>
+</html>

SlicDiagWeb/src/main/webapp
topFrame.jsp added at 1.1
diff -N topFrame.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ topFrame.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,22 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@page isELIgnored="false" %>
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>SLIC Trees and Plots</title>
+        <base target="_self">
+    </head>
+
+    <% 
+        System.setProperty(application.getInitParameter("slic_style_registly_store_name"), 
+                application.getInitParameter("slic_style_registly_store_value"));
+    %>
+    
+    <FRAMESET rows="140,*" BORDER=5>
+        <FRAME SRC="dbSelect.jsp" NAME="dbFrame" scrolling="true" noresize="true">
+        <FRAMESET COLS="25%,75%" BORDER=5>
+            <FRAME SRC="treeFrame.jsp" NAME="treeFrame">
+            <FRAME SRC="plotFrame.jsp" NAME="plotFrame">            
+        </FRAMESET>
+    </FRAMESET>
+</html>

SlicDiagWeb/src/main/webapp
treeFrame.jsp added at 1.1
diff -N treeFrame.jsp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ treeFrame.jsp	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,48 @@
+<%@page contentType="text/html"%>
+<%@page pageEncoding="UTF-8"%>
+
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@taglib prefix="aida" uri="http://aida.freehep.org/jsp20" %>
+<%@page isELIgnored="false" %>
+
+<html>
+    <head>
+        <title>AIDA Tree Frame</title>
+        <base target="plotFrame">
+    </head>
+    <body>
+        <!--
+        <c:out value="DIR:  ${initParam.slic_file_base}"/><br>
+        <c:out value="DATA: ${selectedFileId}"/><br>
+        <c:out value="REF:  ${selectedRefId}"/><br>
+        -->
+        
+        <c:if test="${empty selectedFileId}">
+            <h3>Tree Frame</h3>
+        </c:if>
+        
+        <c:if test="${!empty selectedRefId && !(selectedRefId == initParam.no_selection)}">            
+            <c:set var="aidaRefFile" value="${initParam.slic_file_base}/${selectedRefId}" scope="page"/>
+            <aida:tree 
+                storeName="${aidaRefFile}" 
+                storeType="xml" options="useProxies=\"true\"">
+            </aida:tree>
+        </c:if>        
+        
+        <c:if test="${!empty selectedFileId && !(selectedFileId == initParam.no_selection)}">            
+            <c:set var="aidaDataFile" value="${initParam.slic_file_base}/${selectedFileId}" scope="page"/>
+            <aida:tree 
+                storeName="${aidaDataFile}" 
+                storeType="xml" options="useProxies=\"true\"">
+            </aida:tree>
+            
+            <aida:displaytree 
+                leafHref="plotFrame.jsp?leafHref=%p" 
+                rootLabel="${selectedFileId}" 
+                rootVisible="false" 
+                storeName="${aidaDataFile}">
+            </aida:displaytree>
+        </c:if>        
+        
+    </body>
+</html>

SlicDiagWeb/src/main/webapp/META-INF
context.xml added at 1.1
diff -N context.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ context.xml	24 Sep 2007 17:07:50 -0000	1.1
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context path="/Maven2WebApp" autoDeploy="true">
+   <Resource name="jdbc/SLICDiag" auth="Container" type="javax.sql.DataSource"
+             username="SlicDiag" password="aida" driverClassName="com.mysql.jdbc.Driver"
+             url="jdbc:mysql://web007.slac.stanford.edu:906/SLICDiag?autoReconnect=true"/> 
+</Context>
+

SlicDiagWeb/src/main/webapp/WEB-INF
web.xml added at 1.1
diff -N web.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ web.xml	24 Sep 2007 17:07:51 -0000	1.1
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+    <display-name>SLIC Diagnostics Web</display-name>
+    <session-config>
+        <session-timeout>30</session-timeout>
+    </session-config>
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+    
+    <!-- Context Parameters -->
+    <context-param>
+        <param-name>
+            javax.servlet.jsp.jstl.sql.dataSource
+        </param-name>
+        <param-value>
+            jdbc/SLICDiag
+        </param-value>
+    </context-param>
+    
+    <context-param>
+        <param-name>slic_file_base</param-name>       
+        <param-value>/nfs/slac/g/lcd/public_data/SlicDiagWebData</param-value>
+       <!-- 
+        <param-value>C:/work/Data/slicdiag_test</param-value> 
+         <param-value>/afs/slac.stanford.edu/u/ey/jeremym/public_html/download/slicdiag_test</param-value> 
+         -->
+        <description>Directory where to look for the files with plots</description>
+    </context-param>
+    
+    <!-- Adding Filters -->   
+    <context-param>
+        <param-name>no_selection</param-name>
+        <param-value>none</param-value>
+        <description>String to be used for an empty selection</description>
+    </context-param>
+    <context-param>
+        <param-name>full_selection</param-name>
+        <param-value>All Types</param-value>
+        <description>String to be used for an empty selection</description>
+    </context-param>
+    <context-param>
+        <param-name>slic_style_registly_store_name</param-name>
+        <param-value>hep.aida.ref.plotter.style.registry.system.store</param-value>
+    </context-param>
+    <context-param>
+        <param-name>slic_style_registly_store_value</param-name>
+        <param-value>SlicDiagWeb.xml</param-value>
+    </context-param>
+    
+    <filter>
+        <filter-name>Request Parameter Cash Filter</filter-name>
+        <description>Cashes specified request parameters in the session </description>
+        <filter-class>org.freehep.webutil.filter.RequestParameterCashFilter</filter-class>
+        <init-param>
+            <param-name>attributeList</param-name>
+            <param-value>selectedFileId, selectedRefId, aidaDataFile, aidaRefFile, showPlotStyle, showStatistics, showLegend</param-value>
+            <description>Comma separated list of attributes that need cashing</description>
+        </init-param>
+    </filter>
+    <filter>
+        <filter-name>Cash Plotter</filter-name>
+        <description>Cashes specified request parameters in the session </description>
+        <filter-class>org.freehep.webutil.filter.RequestParameterCashFilter</filter-class>
+        <init-param>
+            <param-name>attributeList</param-name>
+            <param-value>showPlotStyle, showStatistics, showLegend</param-value>
+            <description>Comma separated list of attributes that need cashing</description>
+        </init-param>
+    </filter>
+    <filter-mapping>
+        <filter-name>Request Parameter Cash Filter</filter-name>
+        <url-pattern>/topFrame.jsp</url-pattern>
+    </filter-mapping>
+    
+    <filter>
+        <filter-name>Compress</filter-name>
+        <filter-class>org.freehep.webutil.compress.GZIPFilter</filter-class>
+    </filter>    
+    <filter-mapping>
+        <filter-name>Compress</filter-name>
+        <url-pattern>/treeFrame.jsp</url-pattern>
+    </filter-mapping>    
+    
+    <!--  Adding AIDA TLD -->
+    <listener>
+        <listener-class>hep.aida.web.taglib.util.TreeUtils</listener-class>
+    </listener>
+    
+    
+    <servlet>
+        <servlet-name>aidaplot</servlet-name>
+        <servlet-class>hep.aida.web.servlet.PlotServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    
+    <servlet-mapping>
+        <servlet-name>aidaplot</servlet-name>
+        <url-pattern>/aida_plot.jsp</url-pattern>
+    </servlet-mapping>
+    
+    <!--  Done adding AIDA TLD -->
+    
+    <!-- Adding Servelet to make icons for the tree -->
+    <servlet>
+        <servlet-name>fhicon</servlet-name>
+        <servlet-class>org.freehep.webutil.tree.IconServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    
+    <servlet-mapping>
+        <servlet-name>fhicon</servlet-name>
+        <url-pattern>/icon.jsp</url-pattern>
+    </servlet-mapping>
+    <!-- Done adding Servelet to make icons for the tree -->
+
+    
+</web-app>

SlicDiagWeb/src/main/webapp/css
displaytag.css added at 1.1
diff -N displaytag.css
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ displaytag.css	24 Sep 2007 17:07:51 -0000	1.1
@@ -0,0 +1,109 @@
+table {
+	border: 1px solid #666;
+	width: 80%;
+	margin: 20px 0 20px 0 !important;
+}
+
+th,td {
+	padding: 2px 4px 2px 4px !important;
+	text-align: left;
+	vertical-align: top;
+}
+
+thead tr {
+	background-color: #fc0;
+}
+
+th.sorted {
+	background-color: orange;
+}
+
+th a,th a:visited {
+	color: black;
+}
+
+th a:hover {
+	text-decoration: underline;
+	color: black;
+}
+
+th.sorted a,th.sortable a {
+	background-position: right;
+	display: block;
+	width: 100%;
+}
+
+th.sortable a {
+	background-image: url(../img/arrow_off.png);
+}
+
+th.order1 a {
+	background-image: url(../img/arrow_down.png);
+}
+
+th.order2 a {
+	background-image: url(../img/arrow_up.png);
+}
+
+tr.odd {
+	background-color: #fff
+}
+
+tr.tableRowEven,tr.even {
+	background-color: #fea
+}
+
+div.exportlinks {
+	background-color: #eee;
+	border: 1px dotted #999;
+	padding: 2px 4px 2px 4px;
+	margin: 2px 0 10px 0;
+	width: 79%;
+}
+
+span.export {
+	padding: 0 4px 1px 20px;
+	display: inline;
+	display: inline-block;
+	cursor: pointer;
+}
+
+span.excel {
+	background-image: url(../img/ico_file_excel.png);
+}
+
+span.csv {
+	background-image: url(../img/ico_file_csv.png);
+}
+
+span.xml {
+	background-image: url(../img/ico_file_xml.png);
+}
+
+span.pdf {
+	background-image: url(../img/ico_file_pdf.png);
+}
+
+span.rtf {
+	background-image: url(../img/ico_file_rtf.png);
+}
+
+span.pagebanner {
+	background-color: #eee;
+	border: 1px dotted #999;
+	padding: 2px 4px 2px 4px;
+	width: 79%;
+	margin-top: 10px;
+	display: block;
+	border-bottom: none;
+}
+
+span.pagelinks {
+	background-color: #eee;
+	border: 1px dotted #999;
+	padding: 2px 4px 2px 4px;
+	width: 79%;
+	display: block;
+	border-top: none;
+	margin-bottom: -5px;
+}
CVSspam 0.2.8