]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Add SLC UI servlet
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 7 Nov 2008 08:32:53 +0000 (08:32 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 7 Nov 2008 08:32:53 +0000 (08:32 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@1797 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui-servlet.xml [new file with mode: 0644]
org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui/resultList.jsp [new file with mode: 0644]
org.argeo.slc.webapp/src/main/webapp/WEB-INF/web.xml

diff --git a/org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui-servlet.xml b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui-servlet.xml
new file mode 100644 (file)
index 0000000..7ab8e40
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:aop="http://www.springframework.org/schema/aop"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+       <import
+               resource="classpath:/org/argeo/slc/server/spring/slc-ui-servlet.xml" />
+</beans>
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui/resultList.jsp b/org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-ui/resultList.jsp
new file mode 100644 (file)
index 0000000..f49cb1c
--- /dev/null
@@ -0,0 +1,21 @@
+<dataSet>
+<c:forEach items="${results}" var="result">
+       <data>
+               <param name="testName">${result.uuid}</param>
+               <param name="uuid">${result.uuid}</param>
+<c:choose>
+       <c:when test="${result.closeDate != null}">
+               <param name="date">${result.closeDate}</param>
+       </c:when>
+       <c:otherwise>
+               <param name="date">NOT CLOSED</param>
+       </c:otherwise>
+</c:choose>
+               <report type="applet">org.argeo.slc.web.Applet</report>
+               <report type="download" commandid="xsl">XSL</report>
+               <report type="download" commandid="xml">XML</report>
+               <report type="download" commandid="xls">Excel</report>
+               <report type="download" commandid="pdf">Portable Document Format</report>
+       </data>
+</c:forEach>
+</dataSet>
\ No newline at end of file
index 58956dc75bdbcd865e86d7b34854a4260cf5a576..f14bf27b9d56f9d7136fbb31868e42bae0cb3009 100644 (file)
@@ -72,7 +72,7 @@
 
        <jsp-config>
                <jsp-property-group>
-                       <url-pattern>*.jsp</url-pattern>
+                       <url-pattern>/WEB-INF/slc-jsp/*.jsp</url-pattern>
                        <page-encoding>ISO-8859-1</page-encoding>
                        <include-prelude>
                                /WEB-INF/specific/prelude.jspf