[infinispan-commits] Infinispan SVN: r1125 - in trunk/demos/ec2/src/main: webapp and 3 other directories.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Wed Nov 11 01:50:46 EST 2009
Author: noelo
Date: 2009-11-11 01:50:46 -0500 (Wed, 11 Nov 2009)
New Revision: 1125
Added:
trunk/demos/ec2/src/main/webapp/
trunk/demos/ec2/src/main/webapp/META-INF/
trunk/demos/ec2/src/main/webapp/META-INF/MANIFEST.MF
trunk/demos/ec2/src/main/webapp/WEB-INF/
trunk/demos/ec2/src/main/webapp/WEB-INF/web.xml
trunk/demos/ec2/src/main/webapp/jsp/
trunk/demos/ec2/src/main/webapp/jsp/VirusDetails.jsp
trunk/demos/ec2/src/main/webapp/jsp/VirusSearch.jsp
Log:
Initial addition to SVN
Added: trunk/demos/ec2/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/demos/ec2/src/main/webapp/META-INF/MANIFEST.MF (rev 0)
+++ trunk/demos/ec2/src/main/webapp/META-INF/MANIFEST.MF 2009-11-11 06:50:46 UTC (rev 1125)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/demos/ec2/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/demos/ec2/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/demos/ec2/src/main/webapp/WEB-INF/web.xml 2009-11-11 06:50:46 UTC (rev 1125)
@@ -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>InfinispanEC2WebDemo</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/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/webapp/jsp/VirusDetails.jsp
===================================================================
--- trunk/demos/ec2/src/main/webapp/jsp/VirusDetails.jsp (rev 0)
+++ trunk/demos/ec2/src/main/webapp/jsp/VirusDetails.jsp 2009-11-11 06:50:46 UTC (rev 1125)
@@ -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/src/main/webapp/jsp/VirusSearch.jsp
===================================================================
--- trunk/demos/ec2/src/main/webapp/jsp/VirusSearch.jsp (rev 0)
+++ trunk/demos/ec2/src/main/webapp/jsp/VirusSearch.jsp 2009-11-11 06:50:46 UTC (rev 1125)
@@ -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="/InfinispanEC2WebDemo/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