[infinispan-commits] Infinispan SVN: r1128 - in trunk/demos/ec2: webui and 6 other directories.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Wed Nov 11 03:55:30 EST 2009
Author: noelo
Date: 2009-11-11 03:55:30 -0500 (Wed, 11 Nov 2009)
New Revision: 1128
Added:
trunk/demos/ec2/webui/
trunk/demos/ec2/webui/pom.xml
trunk/demos/ec2/webui/src/
trunk/demos/ec2/webui/src/main/
trunk/demos/ec2/webui/src/main/webapp/
trunk/demos/ec2/webui/src/main/webapp/META-INF/
trunk/demos/ec2/webui/src/main/webapp/META-INF/MANIFEST.MF
trunk/demos/ec2/webui/src/main/webapp/WEB-INF/
trunk/demos/ec2/webui/src/main/webapp/WEB-INF/web.xml
trunk/demos/ec2/webui/src/main/webapp/jsp/
trunk/demos/ec2/webui/src/main/webapp/jsp/VirusDetails.jsp
trunk/demos/ec2/webui/src/main/webapp/jsp/VirusSearch.jsp
Log:
Added to SVN
Added: trunk/demos/ec2/webui/pom.xml
===================================================================
--- trunk/demos/ec2/webui/pom.xml (rev 0)
+++ trunk/demos/ec2/webui/pom.xml 2009-11-11 08:55:30 UTC (rev 1128)
@@ -0,0 +1,45 @@
+
+<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>
+
+ <parent>
+ <groupId>org.infinispan</groupId>
+ <artifactId>infinispan-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <relativePath>../../../parent/pom.xml</relativePath>
+ </parent>
+
+
+ <artifactId>infinispan-ec2-demo-web</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>Infinispan EC2 Demo</name>
+ <description>Infinispan - EC2 Demo</description>
+ <packaging>war</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>infinispan-core</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>infinispan-ec2-demo</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
Property changes on: trunk/demos/ec2/webui/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/webui/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/demos/ec2/webui/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/demos/ec2/webui/src/main/webapp/META-INF/MANIFEST.MF 2009-11-11 08:55:30 UTC (rev 1128)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/demos/ec2/webui/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/demos/ec2/webui/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/demos/ec2/webui/src/main/webapp/WEB-INF/web.xml 2009-11-11 08:55:30 UTC (rev 1128)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="WebApp_ID" version="2.5">
+ <display-name>infinispan-ec2-demo-web</display-name>
+ <listener>
+ <listener-class>org.infinispan.ec2demo.web.CacheServletListener</listener-class>
+ </listener>
+ <welcome-file-list>
+ <welcome-file>jsp/VirusSearch.jsp</welcome-file>
+ </welcome-file-list>
+
+ <context-param>
+ <param-name>jgroups_file</param-name>
+ <param-value>jgroups-s3_ping-aws.xml</param-value>
+ </context-param>
+
+ <servlet>
+ <description></description>
+ <display-name>CacheSearchServlet</display-name>
+ <servlet-name>CacheSearchServlet</servlet-name>
+ <servlet-class>org.infinispan.ec2demo.web.CacheSearchServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>CacheSearchServlet</servlet-name>
+ <url-pattern>/CacheSearchServlet</url-pattern>
+ </servlet-mapping>
+</web-app>
Property changes on: trunk/demos/ec2/webui/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/webui/src/main/webapp/jsp/VirusDetails.jsp
===================================================================
--- trunk/demos/ec2/webui/src/main/webapp/jsp/VirusDetails.jsp (rev 0)
+++ trunk/demos/ec2/webui/src/main/webapp/jsp/VirusDetails.jsp 2009-11-11 08:55:30 UTC (rev 1128)
@@ -0,0 +1,80 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ page import="org.infinispan.ec2demo.Influenza_N_P_CR_Element" %>
+<%@ page import="org.infinispan.ec2demo.Nucleotide_Protein_Element" %>
+<%--
+ Document : VirusDetails
+ Created on : Nov 10, 2009, 7:32:55 AM
+ Author : noconnor at redhat.com
+--%>
+
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Influenza Details</title>
+ </head>
+ <body>
+ <h1>Search Details for <c:out value="${total}"></c:out></h1>
+
+ <h1>Nucleotide Information</h1>
+ <table border="1">
+ <thead>
+ <tr>
+ <th>Virus Name</th>
+ <th>Host</th>
+ <th>Country</th>
+ <th>Year Found</th>
+ <th>GBAN</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td> <c:out value="${Nucleotide.virusName}" /></td>
+ <td> <c:out value="${Nucleotide.host}" /></td>
+ <td><c:out value="${Nucleotide.country}" /></td>
+ <td><c:out value="${Nucleotide.yearFound}" /></td>
+ <td><c:out value="${Nucleotide.genbankAccessionNumber}" /></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h1>Protein Information</h1>
+ <table border="1">
+ <thead>
+ <tr>
+ <th>Protein GBAN</th>
+ <th>Protein Coding Region</th>
+ </tr>
+ </thead>
+ <tbody>
+ <c:forEach items="${PMap}" var="protein">
+ <tr>
+ <td> <c:out value="${protein.key}" /></td>
+ <td> <c:out value="${protein.value}" /></td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+
+
+ <h1>Cluster Information</h1>
+ <table border="1">
+ <thead>
+ <tr>
+ <th>Nodes</th>
+ </tr>
+ </thead>
+ <tbody>
+ <c:forEach items="${CMap}" var="node">
+ <tr>
+ <td> <c:out value="${node}" /></td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+
+ </body>
+</html>
Added: trunk/demos/ec2/webui/src/main/webapp/jsp/VirusSearch.jsp
===================================================================
--- trunk/demos/ec2/webui/src/main/webapp/jsp/VirusSearch.jsp (rev 0)
+++ trunk/demos/ec2/webui/src/main/webapp/jsp/VirusSearch.jsp 2009-11-11 08:55:30 UTC (rev 1128)
@@ -0,0 +1,25 @@
+<%--
+ Document : VirusSearch
+ Created on : Nov 10, 2009, 12:48:06 AM
+ Author : noconnor at redhat.com
+--%>
+
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Virus Details Search</title>
+ </head>
+ <body>
+
+ <h1>Enter Virus GBAN</h1>
+ <form action="/infinispan-ec2-demo-web/CacheSearchServlet" method="POST">
+ Genbank Accession Number
+ <INPUT TYPE="TEXT" NAME="vGBAN">
+ <INPUT type="submit" value="Go" />
+ </form>
+ </body>
+</html>
More information about the infinispan-commits
mailing list