geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1076572 [3/3] - in /geronimo/daytrader/trunk/javaee6/modules: core/src/main/java/org/apache/geronimo/daytrader/javaee6/core/direct/ web/src/main/java/org/apache/geronimo/daytrader/javaee6/web/ web/src/main/java/org/apache/geronimo/daytrade...
Date Thu, 03 Mar 2011 10:01:52 GMT
Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/order.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/order.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/order.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/order.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,209 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<title>Trade Order information</title>    
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099" vlink="#000099">
+<h:form>
+<table height="54">
+  <tbody>
+    <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10" colspan="5"><b><font
+                color="#ffffff">DayTrader New Orders</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+        <tr align="left">
+            <td><b><h:outputLink value="tradehome.faces">Home</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="account.faces">Account</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="portfolio.faces">Portfolio</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="quote.faces">Quotes/Trade</h:outputLink></b></td>
+            <td><b><h:commandLink action="#{tradeapp.logout}">Logoff</h:commandLink></b></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td align="right" colspan="6">
+            <hr/>
+            <font color="#ff0000" size="-2"> <h:outputLabel value="#{accountdata.currentTime}" color="#ff0000" /></font></td>
+        </tr>
+       
+        <tr>
+            <td colspan="6" bgcolor="#ff0000"><blink><b><font color="#ffffff">Alert: The following Order(s) have completed.</font></b></blink></td>
+        </tr>
+        <tr align="center">
+            <td colspan="6">
+            <h:dataTable id="orders" value="#{accountdata.closedOrders}"
+            var="item" border="1">
+            <f:facet name="header">
+                <h:outputText value="Alert: The following Order(s) have completed."
+                    color="#ff0000" />
+            </f:facet>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order id" />
+                </f:facet>
+                <h:outputText value="#{item.orderID}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order status" />
+                </f:facet>
+                <h:outputText value="#{item.orderStatus}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="creation date" />
+                </f:facet>
+                <h:outputText value="#{item.openDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="completion date" />
+                </f:facet>
+                <h:outputText value="#{item.completionDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="txn fee" />
+                </f:facet>
+                <h:outputText value="#{item.orderFee}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="type" />
+                </f:facet>
+                <h:outputText value="#{item.orderType}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="symbol" />
+                </f:facet>
+                <h:outputText value="#{item.symbol}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="quantity" />
+                </f:facet>
+                <h:outputText value="#{item.quantity}"></h:outputText>
+            </h:column>
+        </h:dataTable>
+            </td>
+        </tr>
+       
+    </tbody>
+</table>
+
+<table width="650">
+    <tbody>
+        <tr>
+            <td>
+            <table width="100%">
+                <tbody>
+                    <tr>
+                        <td></td>
+                    </tr>
+                   
+                    <tr>
+                        <td align="left" bgcolor="#cccccc"><b>New Order</b></td>
+                    </tr>
+                    <tr>
+                        <td align="left"><font color="#cc0000"><b><br/>
+                        Order <h:outputText value="#{orderdata.orderData.orderID}" /></b> to <b><h:outputText value="#{orderdata.orderData.orderType}" /> <h:outputText value="#{orderdata.orderData.quantity}" /></b> shares of <b><h:outputLink value="docs/glossary.html">symbol:</h:outputLink></b> has been submitted for processing. </font><br/>
+                        <br/>
+                        <font color="#000000">Order <font color="#000000"><b><h:outputText value="#{orderdata.orderData.orderID}" /></b></font> details:</font></td>
+                    </tr>
+                    <tr>
+                        <td align="center">
+                        <table border="1" style="font-size: smaller">
+                            <tbody>
+                                <tr align="center">
+                                    <td><a href="docs/glossary.html">order ID</a></td>
+                                    <td><a href="docs/glossary.html">order status</a></td>
+                                    <td><a href="docs/glossary.html">creation date</a></td>
+                                    <td><a href="docs/glossary.html">completion date</a></td>
+                                    <td><a href="docs/glossary.html">txn fee</a></td>
+                                    <td><a href="docs/glossary.html">type</a></td>
+                                    <td><a href="docs/glossary.html">symbol</a></td>
+                                    <td><a href="docs/glossary.html">quantity</a></td>
+                                </tr>
+                                <tr align="center" bgcolor="#fafcb6">
+                                    <td><h:outputText value="#{orderdata.orderData.orderID}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.orderStatus}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.openDate}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.completionDate}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.orderFee}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.orderType}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.symbol}" /></td>
+                                    <td><h:outputText value="#{orderdata.orderData.quantity}" /></td>
+                                </tr>
+                            </tbody>
+                        </table>
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table height="54" style="font-size: smaller">
+  <tbody>
+        <tr>
+            <td colspan="2">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+            <table width="100%" style="font-size: smaller">
+                <tbody>
+                    <tr>
+                        <td>Note: Click any <a href="docs/glossary.html">symbol</a> for a quote or to trade.</td>
+                        <td align="right">
+                       <h:commandButton id="submit" type="submit" value="quotes" action="#{quotedata.getQuotesBySymbols}" />
+                        <h:inputText id="symbols" value="#{quotedata.symbols}" required="true"><f:validateLength minimum="1" maximum="40" /></h:inputText></td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader New Orders</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+</h:form>
+</h:body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/portfolio.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/portfolio.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/portfolio.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/portfolio.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,270 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+    <title>DayTrader Portfolio</title>
+    <link rel="stylesheet" href="style.css" type="text/css" />
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099" vlink="#000099">
+<h:form>
+<table height="54">
+  <tbody>
+    <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10" colspan="5"><b><font
+                color="#ffffff">DayTrader Portfolio</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+        <tr align="left">
+            <td><b><h:outputLink value="tradehome.faces">Home</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="account.faces">Account</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="portfolio.faces">Portfolio</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="quote.faces">Quotes/Trade</h:outputLink></b></td>
+            <td><b><h:commandLink action="#{tradeapp.logout}">Logoff</h:commandLink></b></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td align="right" colspan="6">
+            <hr/>
+            <font color="#ff0000" size="-2"> <h:outputLabel value="#{accountdata.currentTime}" color="#ffffff" /></font></td>
+        </tr>
+ <tr>
+            <td colspan="6" bgcolor="#ff0000"><blink><b><font color="#ffffff">Alert: The following Order(s) have completed.</font></b></blink></td>
+        </tr>
+        <tr align="center">
+            <td colspan="6">
+            <h:dataTable id="orders" value="#{accountdata.closedOrders}"
+            var="item" border="1">
+            <f:facet name="header">
+                <h:outputText value="Alert: The following Order(s) have completed."
+                    color="#ff0000" />
+            </f:facet>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order id" />
+                </f:facet>
+                <h:outputText value="#{item.orderID}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order status" />
+                </f:facet>
+                <h:outputText value="#{item.orderStatus}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="creation date" />
+                </f:facet>
+                <h:outputText value="#{item.openDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="completion date" />
+                </f:facet>
+                <h:outputText value="#{item.completionDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="txn fee" />
+                </f:facet>
+                <h:outputText value="#{item.orderFee}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="type" />
+                </f:facet>
+                <h:outputText value="#{item.orderType}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="symbol" />
+                </f:facet>
+                <h:outputText value="#{item.symbol}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="quantity" />
+                </f:facet>
+                <h:outputText value="#{item.quantity}"></h:outputText>
+            </h:column>
+        </h:dataTable>
+            </td>
+        </tr>
+       
+    </tbody>
+</table>
+<table width="645">
+    <tbody>
+        <tr>
+            <td valign="top" width="643">
+            <table width="100%">
+                <tbody>
+
+                    <tr>
+                        <td colspan="5" bgcolor="#cccccc"><b>Portfolio </b></td>
+                        <td bgcolor="#cccccc" align="right"><b>Number of Holdings: </b><h:outputLabel value="#{portfolio.numberHoldings}" color="#ff0000" /></td>
+                    </tr>
+                    <tr align="center">
+                        <td colspan="6">
+                        <CENTER></CENTER>
+                        <table border="1" style="font-size: smaller">
+                            <CAPTION align="bottom"><b>Portfolio </b></CAPTION>
+                            <tbody>
+                                <tr align="center" colspan="10">
+                                     <h:dataTable id="holdings" value="#{portfolio.holdingDatas}"
+            var="item">
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="holding ID" />
+                </f:facet>
+                <h:outputText value="#{item.holdingID}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="purchase date" />
+                </f:facet>
+                <h:outputText value="#{item.purchaseDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="symbol" />
+                </f:facet>
+                <h:outputText value="#{item.quoteID}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="quantity" />
+                </f:facet>
+                <h:outputText value="#{item.quantity}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="purchase price" />
+                </f:facet>
+                <h:outputText value="#{item.purchasePrice}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="current price" />
+                </f:facet>
+                <h:outputText value="#{item.price}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="purchase basis" />
+                </f:facet>
+                <h:outputText value="#{item.basis}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="market value" />
+                </f:facet>
+                <h:outputText value="#{item.marketValue}"></h:outputText>
+            </h:column>
+            
+              <h:column>
+                <f:facet name="header">
+                    <h:outputText value="gain/(loss)" />
+                </f:facet>
+                <h:outputText value="#{item.gain}"></h:outputText>
+            </h:column>
+            
+             <h:column>
+                <f:facet name="header">
+                    <h:outputText value="trade" />
+                </f:facet>
+                <h:commandButton action="#{item.sell()}"></h:commandButton>                
+            </h:column>
+        </h:dataTable>
+                                </tr>
+                               
+                                <tr align="center">
+                                    <td></td>
+                                    <td></td>
+                                    <td></td>
+                                    <td></td>
+                                    <td></td>
+                                    <td><b>Total</b></td>
+                                    <td align="center">$ <h:outputLabel value="#{portfolio.totalBasis}"/></td>
+                                    <td align="center">$ <h:outputLabel value="#{portfolio.totalValue}"/></td>
+                                    <td align="center" colspan="2">$ <h:outputLabel value="#{portfolio.totalGain}"/> <h:outputLabel value="#{portfolio.totalGainPercent}"/></td>
+                                </tr>
+                            </tbody>
+                        </table>
+                        <CENTER></CENTER>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td colspan="6"></td>
+                    </tr>
+               </tbody>
+            </table>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table height="54" style="font-size: smaller">
+  <tbody>
+        <tr>
+            <td colspan="2">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+            <table width="100%" style="font-size: smaller">
+                <tbody>
+                    <tr>
+                        <td>Note: Click any <a href="docs/glossary.html">symbol</a> for a quote or to trade.</td>
+                        <td align="right"><h:commandButton id="submit" type="submit" value="quotes" action="#{quotedata.getQuotesBySymbols}" />
+                        <h:inputText id="symbols" value="#{quotedata.symbols}" required="true"><f:validateLength minimum="1" maximum="40" /></h:inputText></td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader Portfolio</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+</h:form>
+</h:body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/quote.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/quote.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/quote.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/quote.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,232 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+    <title>Trade: Quotes and Trading</title>
+    <link rel="stylesheet" href="style.css" type="text/css" />
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099" vlink="#000099">
+<h:form>
+<table height="54">
+  <tbody>
+    <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10" colspan="5"><b><font
+                color="#ffffff">DayTrader Quotes</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+        <tr align="left">
+           <td><b><h:outputLink value="tradehome.faces">Home</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="account.faces">Account</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="portfolio.faces">Portfolio</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="quote.faces">Quotes/Trade</h:outputLink></b></td>
+            <td><b><h:commandLink action="#{tradeapp.logout}">Logoff</h:commandLink></b></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td align="right" colspan="6">
+            <hr/>
+            <font color="#ff0000" size="-2"><h:outputLabel value="#{accountdata.currentTime}" color="#ff0000" /></font></td>
+        </tr>
+      
+        <tr>
+            <td colspan="6" bgcolor="#ff0000"><blink><b><font color="#ffffff">Alert: The following Order(s) have completed.</font></b></blink></td>
+        </tr>
+        <tr align="center">
+            <td colspan="6">
+            <h:dataTable id="orders" value="#{accountdata.closedOrders}" var="item">
+        <f:facet name="header">
+            <h:outputText value="Alert: The following Order(s) have completed."
+                color="#ff0000" />
+        </f:facet>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="order id" />
+            </f:facet>
+            <h:outputText value="#{item.orderID}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="order status" />
+            </f:facet>
+            <h:outputText value="#{item.orderStatus}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="creation date" />
+            </f:facet>
+            <h:outputText value="#{item.openDate}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="completion date" />
+            </f:facet>
+            <h:outputText value="#{item.completionDate}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="txn fee" />
+            </f:facet>
+            <h:outputText value="#{item.orderFee}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="type" />
+            </f:facet>
+            <h:outputText value="#{item.orderType}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="symbol" />
+            </f:facet>
+            <h:outputText value="#{item.symbol}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="quantity" />
+            </f:facet>
+            <h:outputText value="#{item.quantity}"></h:outputText>
+        </h:column>
+    </h:dataTable>
+            </td>
+        </tr>
+        
+    </tbody>
+</table>
+<table width="650">
+    <tbody>
+        <tr>
+            <td>
+            <table width="100%">
+                <tbody>
+                    <tr>
+                        <td></td>
+                    </tr>
+                    <tr>
+                        <td bgcolor="#cccccc"> <b>Quotes</b></td>
+                    </tr>
+                    <tr>
+                        <td align="center">
+                       <h:dataTable id="quotes" value="#{quotedata.quotes}" var="item">
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="symbol" />
+            </f:facet>
+            <h:outputText value="#{item.symbol}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="company" />
+            </f:facet>
+            <h:outputText value="#{item.companyName}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="volume" />
+            </f:facet>
+            <h:outputText value="#{item.volume}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="price range" />
+            </f:facet>
+            <h:outputText value="#{item.range}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="open price" />
+            </f:facet>
+            <h:outputText value="#{item.open}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="current price" />
+            </f:facet>
+            <h:outputText value="#{item.price}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="gain/(loss)" />
+            </f:facet>
+            <h:outputText value="#{item.gainPercent}"></h:outputText>
+        </h:column>
+
+        <h:column>
+            <f:facet name="header">
+                <h:outputText value="trade" />
+            </f:facet>
+            <h:outputText value="#{item.symbol}"></h:outputText>
+        </h:column>
+    </h:dataTable>
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table height="54" style="font-size: smaller">
+  <tbody>
+        <tr>
+            <td colspan="2">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+            <table width="100%" style="font-size: smaller">
+                <tbody>
+                    <tr>
+                        <td>Note: Click any <a href="docs/glossary.html">symbol</a> for a quote or to trade.</td>
+                        <td align="right"><h:commandButton id="submit" type="submit" value="quotes" action="#{quotedata.getQuotesBySymbols}" />
+                        <h:inputText id="symbols" value="#{quotedata.symbols}" required="true"><f:validateLength minimum="1" maximum="40" /></h:inputText></td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader Quotes</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+</h:form>
+</h:body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/register.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/register.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/register.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/register.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,143 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+	<title>trade Registration</title>
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099">
+<h:form>
+<table style="font-size: smaller">
+		<tbody>
+			<tr>
+				<td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+					color="#ffffff">DayTrader Register</font></b></td>
+				<td align="center" bgcolor="#000000" width="100" height="10"><font
+					color="#ffffff"><b>DayTrader</b></font></td>
+			</tr>
+		</tbody>
+	</table>
+	<table width="740" height="30">
+		<tbody>
+			<tr>
+				<td align="center"></td>
+				<td><font color="#ff3333"><h:outputLabel value="#{tradeapp.results}"></h:outputLabel></font></td>
+				<td></td>
+			</tr>
+		</tbody>
+	</table>
+	<table width="665">
+		<tbody>
+			<tr>
+				<td width="2%" bgcolor="#e7e4e7"></td>
+				<td width="98%" colspan="8"><b>Register</b>
+				<hr/>
+				</td>
+			</tr>
+		</tbody>
+	</table>
+	
+	<table width="665">
+		<tbody align="right">
+			<tr>
+				<td width="2%" bgcolor="#e7e4e7" rowspan="11"></td>
+				<td width="33%" colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Full
+				name:</b></td>
+				<td width="20%" colspan="2" align="right"><h:inputText id="fullname" value="#{tradeapp.fullname}" required="true"><f:validateLength minimum="1" maximum="12"/></h:inputText></td>
+				<td width="2%" bgcolor="#e7e4e7" rowspan="11"></td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Address:</b></td>
+				<td colspan="2" align="right"><h:inputText id="address" value="#{tradeapp.address}" required="true"> <f:validateLength minimum="1" maximum="40"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>E-Mail
+				address:</b></td>
+				<td colspan="2" align="right"><h:inputText id="email" value="#{tradeapp.email}" required="true"> <f:validateLength minimum="1" maximum="40"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td colspan="4">&nbsp;</td>
+				<td colspan="2" align="right">&nbsp;</td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>User
+				ID:</b></td>
+				<td colspan="2" align="right">
+				<h:inputText id="uid" value="#{tradeapp.userID}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Password:</b></td>
+				<td colspan="2" align="right"><h:inputSecret id="password" value="#{tradeapp.password}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputSecret></td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Confirm
+				password:</b></td>
+				<td colspan="2" align="right"><h:inputText id="cpassword" value="#{tradeapp.cpassword}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td colspan="4">&nbsp;</td>
+				<td colspan="2" align="right">&nbsp;</td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><font COLOR="#FF0000">*</font><b>Opening
+				account balance:</b></td>
+				<td colspan="2" align="right">$<b> </b><h:inputText id="money" value="#{tradeapp.money}" required="true"><f:validateLength minimum="1" maximum="20"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td colspan="4" align="right"><b><font COLOR="#FF0000">*</font>Credit
+				card number:</b></td>
+				<td colspan="2" align="right">&nbsp;&nbsp;<h:inputText id="ccn" value="#{tradeapp.ccn}" required="true"><f:validateLength minimum="1" maximum="40"/></h:inputText></td>
+			</tr>
+			<tr>
+				<td align="center"></td>
+				<td align="center"></td>
+				<td align="center"></td>
+				<td align="center"></td>
+				<td align="center"></td>
+				<td align="center"><h:commandButton id="submit" type="submit" value="Register" action="#{tradeapp.register}"/></td>
+			</tr>
+			<tr>
+				<td align="right" colspan="6"></td>
+			</tr>
+		</tbody>
+	</table>
+	
+	<table height="54" style="font-size: smaller">
+		<tbody>
+			<tr>
+				<td colspan="2">
+				<hr/>
+				</td>
+			</tr>
+			<tr>
+				<td colspan="2"></td>
+			</tr>
+			<tr>
+				<td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+					color="#ffffff">DayTrader Register</font></b></td>
+				<td align="center" bgcolor="#000000" width="100" height="10"><font
+					color="#ffffff"><b>DayTrader</b></font></td>
+			</tr>
+		</tbody>
+	</table>
+	</h:form>
+	</h:body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/tradehome.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/tradehome.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/tradehome.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/tradehome.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,311 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head>
+    <title>Welcome to DayTrader</title>
+    <link rel="stylesheet" href="style.css" type="text/css" />
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099" vlink="#000099">
+<h:form>
+<table height="54">
+    <tbody>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10" colspan="5"><b><font
+                color="#ffffff">DayTrader Home</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+        <tr align="left">
+           <td><b><h:outputLink value="tradehome.faces">Home</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="account.faces">Account</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="portfolio.faces">Portfolio</h:outputLink></b><b> </b></td>
+            <td><b><h:outputLink value="quote.faces">Quotes/Trade</h:outputLink></b></td>
+            <td><b><h:commandLink action="#{tradeapp.logout}">Logoff</h:commandLink></b></td>
+            <td></td>
+        </tr>
+        <tr>
+            <td align="right" colspan="6">
+            <hr/>
+            <font color="#ff0000" size="-2"><h:outputLabel value="#{accountdata.currentTime}" color="#ff0000" /></font></td>
+        </tr>
+     
+        <tr>
+            <td colspan="6" bgcolor="#ff0000"><blink><b><font color="#ffffff">Alert:
+            The following Order(s) have completed.</font></b></blink></td>
+        </tr>
+        <tr align="center">
+            <td colspan="6">
+            <h:dataTable id="orders" value="#{accountdata.closedOrders}" var="item" border="1">
+            <f:facet name="header">
+                <h:outputText value="Alert: The following Order(s) have completed."
+                    color="#ff0000" />
+            </f:facet>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order id" />
+                </f:facet>
+                <h:outputText value="#{item.orderID}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="order status" />
+                </f:facet>
+                <h:outputText value="#{item.orderStatus}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="creation date" />
+                </f:facet>
+                <h:outputText value="#{item.openDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="completion date" />
+                </f:facet>
+                <h:outputText value="#{item.completionDate}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="txn fee" />
+                </f:facet>
+                <h:outputText value="#{item.orderFee}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="type" />
+                </f:facet>
+                <h:outputText value="#{item.orderType}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="symbol" />
+                </f:facet>
+                <h:outputText value="#{item.symbol}"></h:outputText>
+            </h:column>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="quantity" />
+                </f:facet>
+                <h:outputText value="#{item.quantity}"></h:outputText>
+            </h:column>
+        </h:dataTable>
+            </td>
+        </tr>
+    
+    </tbody>
+</table>
+<table width="636">
+    <tbody>
+        <tr>
+            <td valign="top" width="377">
+            <table width="384">
+                <tbody>
+                    <tr>
+                        <td colspan="3"><b>Welcome &nbsp;<h:outputLabel value="#{accountdata.profileID}" />,</b></td>
+                    </tr>
+                    <tr>
+                        <td width="133"></td>
+                        <td width="22"></td>
+                        <td width="212"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3" align="left" bgcolor="#cccccc"><b> User Statistics
+                        </b></td>
+                    </tr>
+                    <tr>
+                        <td align="right" valign="top" width="133"><a
+                            href="docs/glossary.html">account ID:<br/>
+                        </a><a href="docs/glossary.html">account created:</a><br/>
+                        <a href="docs/glossary.html">total logins:</a><br/>
+                        <a href="docs/glossary.html">session created:</a><br/>
+                        </td>
+                        <td width="22"></td>
+                        <td align="left" width="212">
+                        <h:outputText value="#{accountdata.accountID}" /><br/>
+                        <h:outputText value="#{accountdata.creationDate}" /><br/>
+                        <h:outputText value="#{accountdata.loginCount}" /><br/>
+                        <h:outputText value="#{accountdata.sessionCreationDate}" /><br/>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td width="133"></td>
+                        <td width="22"></td>
+                        <td width="212"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="3" bgcolor="#cccccc"><b>Account Summary </b></td>
+                    </tr>
+                    <tr>
+                        <td align="right" valign="top" width="133"><a
+                            href="docs/glossary.html"> cash balance:</a><br/>
+                        <a href="docs/glossary.html">number of holdings:</a><br/>
+                        <a href="docs/glossary.html">total of holdings:<br/>
+                        sum of cash/holdings<br/>
+                        opening balance:<br/>
+                        </a>
+                        <hr/>
+                        </td>
+                        <td width="22"></td>
+                        <td align="left" valign="top" width="212">$ <h:outputText value="#{accountdata.balance}" /><br/>
+                        <h:outputText value="#{accountdata.numberHoldings}" /><br/>
+                        $ <h:outputText value="#{accountdata.holdingsTotal}" /><br/>
+                        $ <h:outputText value="#{accountdata.sumOfCashHoldings}" /><br/>
+                        $ <h:outputText value="#{accountdata.openBalance}" /><br/>
+
+                        <hr/>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td valign="top" align="right"><a href="docs/glossary.html">current
+                        gain/(loss):</a></td>
+                        <td></td>
+                        <td valign="top">$ <b><h:outputText value="#{accountdata.gain}" /> <h:outputText value="#{accountdata.gainPercent}" /></b></td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+            <td align="center" valign="top" bgcolor="#ffffff" width="236">
+            <table border="1" bgcolor="#ffffff" width="100%" style="font-size: smaller">
+    <tbody>
+        <tr>
+            <td colspan="2" bgcolor="#000000" align="center" height="15"><font
+                color="#ffffff"><b>Market Summary<br/>
+            <h:outputLabel value="#{marketdata.summaryDate}" /></b></font></td>
+        </tr>
+        <tr>
+            <td align="right" bgcolor="#fafcb6" height="47" width="100"><a
+                href="docs/glossary.html">DayTrader Stock Index (TSIA)</a></td>
+            <td align="center" valign="middle" bgcolor="#ffffff" height="47"
+                width="141"><h:outputText value="#{marketdata.TSIA}" /> <h:outputText value="#{marketdata.gainPercent}" /></td>
+        </tr>
+        <tr>
+            <td align="right" bgcolor="#fafcb6"><a href="docs/glossary.html">Trading
+            Volume</a></td>
+            <td align="center" valign="middle"><h:outputText value="#{marketdata.volume}" /></td>
+        </tr>
+        <tr>
+            <td align="right" bgcolor="#fafcb6" width="74"><a
+                href="docs/glossary.html">Top Gainers</a></td>
+            <td bgcolor="#ffffff">
+           <h:dataTable id="gainers" value="#{marketdata.topGainers}" var="item">
+                <h:column>
+                    <f:facet name="header">
+                        <h:outputText value="symbol" />
+                    </f:facet>
+                    <h:outputText value="#{item.symbol}"></h:outputText>
+                </h:column>
+                <h:column>
+                    <f:facet name="header">
+                        <h:outputText value="price" />
+                    </f:facet>
+                    <h:outputText value="#{item.price}"></h:outputText>
+                </h:column>
+                <h:column>
+                    <f:facet name="header">
+                        <h:outputText value="change" />
+                    </f:facet>
+                    <h:outputText value="#{item.open}"></h:outputText>
+                </h:column>
+            </h:dataTable>
+            </td>
+        </tr>
+        <tr>
+            <td align="right" height="55" bgcolor="#fafcb6" width="74"><a
+                href="docs/glossary.html">Top Losers</a></td>
+            <td height="55" bgcolor="#ffffff" width="141">
+             <h:dataTable id="losers" value="#{marketdata.topLosers}" var="item">
+            <f:facet name="header">
+                <h:outputText value="Alert: The following Order(s) have completed."
+                    color="#ff0000" />
+            </f:facet>
+
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="symbol" />
+                </f:facet>
+                <h:outputText value="#{item.symbol}"></h:outputText>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="price" />
+                </f:facet>
+                <h:outputText value="#{item.price}"></h:outputText>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="change" />
+                </f:facet>
+                <h:outputText value="#{item.open}"></h:outputText>
+            </h:column>
+        </h:dataTable>
+            </td>
+        </tr>
+    </tbody>
+</table>
+            
+             <br/>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table height="54" style="font-size: smaller">
+    <tbody>
+        <tr>
+            <td colspan="2">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+            <table width="100%" style="font-size: smaller">
+                <tbody>
+                    <tr>
+                        <td>Note: Click any <a href="docs/glossary.html">symbol</a> for a
+                        quote or to trade.</td>
+                        <td align="right">
+                     <h:commandButton id="submit" type="submit" value="quotes" action="#{quotedata.getQuotesBySymbols}" />
+                        <h:inputText id="symbols" value="#{quotedata.symbols}" required="true"><f:validateLength minimum="1" maximum="40" /></h:inputText>
+                        </td>
+                    </tr>
+                </tbody>
+            </table>
+            </td>
+        </tr>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader Home</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+</h:form>
+</h:body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/web_prmtv.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/web_prmtv.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/web_prmtv.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/web_prmtv.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,181 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<title>Web Primitives</title>
+</head>
+
+<body bgcolor="#FFFFFF" link="#000099" vlink="#000099">
+<hr/>
+<table width="740">
+	<tbody>
+		<tr>
+			<td>
+			<H3>Web Primitive Tests</H3>
+			</td>
+			<td align="right"></td>
+		</tr>
+	</tbody>
+</table>
+<hr/>
+
+
+<table border="1" width="740">
+	<tbody>
+		<tr>
+			<td colspan="1" bgcolor="#c93333" align="center"><b><font
+				color="#FFFFFF">Primitive Test Suite</font></b></td>
+		</tr>
+		<tr>
+		    <td>
+			<P>The Geronimo performance benchmark sample provides
+			a suite of web primitives. These primitives singularly test key
+			operations in the enterprise Java programming model. Links to each of
+			the web primitive tests are provided below along with a description
+			of each operation.</P>
+			<P>Note that some primitives below can have their main operations
+			repeated. These operations are marked with a red 
+			<font COLOR="#FF0000">*</font>. In order to adjust the repetition, change
+			the primitive iteration value in the Trade configuration page.<font></font></P>
+			</td>
+		</tr>
+	</tbody>
+</table>
+
+<table border="1" width="740">
+	<tbody>
+		<tr>
+			<td colspan="2" bgcolor="#c93333" align="center"><b><font
+				color="#FFFFFF">Web Container ping suite</font></b></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="PingHtml.html"><font
+				face="Times New Roman">PingHtml</font></a></font></td>
+			<td><font size="-1">PingHtml is the most basic operation providing
+			access to a simple &quot;Hello World&quot; page of static HTML.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="servlet/ExplicitGC"
+				target="_self"><font face="Times New Roman">Explicit GC</font></a></font></td>
+			<td><font size="-1">Invoke Garbage Collection on AppServer. Reports
+			heap statistics after the GC has completed.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="servlet/PingServlet"
+				target="_self"><font face="Times New Roman">PingServlet</font></a></font></td>
+			<td><font size="-1">PingServlet tests fundamental dynamic HTML
+			creation through server side servlet processing.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a
+				href="servlet/PingServletWriter" target="_self"><font
+				face="Times New Roman">PingServletWriter</font></a> </font></td>
+			<td><font size="-1">PingServletWriter extends PingServlet by using a
+			PrintWriter for formatted output vs. the output stream used by
+			PingServlet.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a
+				href="servlet/PingServlet2Include" target="_self"><font
+				face="Times New Roman">PingServlet2Include</font></a></font><font
+				COLOR="#FF0000">*</font></td>
+			<td><font size="-1">PingServlet2Include tests response inclusion.
+			Servlet 1 includes the response of Servlet 2.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a
+				href="servlet/PingServlet2Servlet" target="_self"><font
+				face="Times New Roman">PingServlet2Servlet</font></a></font></td>
+			<td><font size="-1">PingServlet2Servlet tests request dispatching.
+			Servlet 1, the controller, creates a new JavaBean object forwards the
+			request with the JavaBean added to Servlet 2. Servlet 2 obtains
+			access to the JavaBean through the Servlet request object and
+			provides dynamic HTML output based on the JavaBean data.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="PingJsp.jsp">PingJSP</a></font></td>
+			<td><font size="-1">PingJSP tests a direct call to JavaServer Page
+			providing server-side dynamic HTML through JSP scripting.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="PingJspEL.jsp">PingJSPEL</a></font></td>
+			<td><font size="-1">PingJSPEL tests a direct call to JavaServer Page
+			providing server-side dynamic HTML through JSP scripting and the
+			usage of the new JSP 2.0 Expression Language.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="servlet/PingServlet2Jsp">PingServlet2JSP</a></font></td>
+			<td><font size="-1">PingServlet2JSP tests a commonly used design
+			pattern, where a request is issued to servlet providing server side
+			control processing. The servlet creates a JavaBean object with
+			dynamically set attributes and forwards the bean to the JSP through a
+			RequestDispatcher The JSP obtains access to the JavaBean and provides
+			formatted display with dynamic HTML output based on the JavaBean
+			data.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="servlet/PingSession1">PingHTTPSession1</a></font>
+			</td>
+			<td><font size="-1">PingHTTPSession1 - <b>SessionID</b> tests
+			fundamental HTTP session function by creating a unique session ID for
+			each individual user. The ID is stored in the users session and is
+			accessed and displayed on each user request.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><font size="-1"><a href="servlet/PingSession2">PingHTTPSession2</a></font></td>
+			<td><font size="-1">PingHTTPSession2 <b>session create/destroy </b>further
+			extends the previous test by invalidating the HTTP Session on every
+			5th user access. This results in testing HTTPSession create and
+			destroy</font></td>
+		</tr>
+		<tr>
+			<td align="center"><a href="servlet/PingSession3"><font size="-1">PingHTTPSession3</font></a></td>
+			<td><font size="-1">PingHTTPSession3 <b>large session object </b>tests
+			the servers ability to manage and persist large HTTPSession data
+			objects. The servlet creates a large custom java object. The class
+			contains multiple data fields and results in 2048 bytes of data. This
+			large session object is retrieved and stored to the session on each
+			user request.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><a href="servlet/PingJDBCRead"><font size="-1">PingJDBCRead</font></a><font
+				COLOR="#FF0000">*</font></td>
+			<td><font size="-1">PingJDBCRead tests fundamental servlet to JDBC
+			access to a database performing a single-row read using a prepared
+			SQL statment.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><a href="servlet/PingJDBCWrite"><font size="-1">PingJDBCWrite</font></a><font
+				COLOR="#FF0000">*</font></td>
+			<td><font size="-1">PingJDBCRead tests fundamental servlet to JDBC
+			access to a database performing a single-row write using a prepared
+			SQL statment.</font></td>
+		</tr>
+		<tr>
+			<td align="center"><a href="servlet/PingServlet2JNDI"><font size="-1">PingServlet2JNDI</font></a><font
+				COLOR="#FF0000">*</font></td>
+			<td><font size="-1">PingServlet2JNDI tests the fundamental J2EE
+			operation of a servlet allocating a JNDI context and performing a
+			JNDI lookup of a JDBC DataSource.</font></td>
+		</tr>		
+	</tbody>
+</table>
+</body>
+</html>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/welcome.xhtml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/welcome.xhtml?rev=1076572&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/welcome.xhtml (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/welcome.xhtml Thu Mar  3 10:01:51 2011
@@ -0,0 +1,122 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets">
+<h:head><title>Trade Login</title>
+<link rel="stylesheet" href="style.css" type="text/css" />
+</h:head>
+<h:body bgcolor="#ffffff" link="#000099">
+<h:form>
+<table style="font-size: smaller">
+    <tbody>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader Login</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+<table width="100%" height="30">
+    <tbody>
+        <tr>
+            <td></td>
+            <td><font color="#ff0033">
+            <h:outputLabel value="#{tradeapp.results}"></h:outputLabel></font></td>
+            <td></td>
+        </tr>
+    </tbody>
+</table>
+<div align="left"></div>
+<table width="616">
+    <tbody>
+        <tr>
+            <td width="2%" bgcolor="#e7e4e7" rowspan="3"></td>
+            <td width="98%"><b>Log in</b>
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td align="right"><font size="-1">Username &nbsp; &nbsp; &nbsp;&nbsp;
+            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Password &nbsp; &nbsp; &nbsp;
+            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></td>
+        </tr>
+        <tr>
+            <td align="right">
+            
+            <h:inputText id="uid" value="#{tradeapp.userID}" required="true"><f:validateLength minimum="1" maxium="10" /></h:inputText> &nbsp; &nbsp; &nbsp; &nbsp; 
+            <h:inputSecret id="password" value="#{tradeapp.password}" required="true"><f:validateLength minimum="1" maxium="10" /></h:inputSecret> &nbsp; 
+            <h:commandButton id="submit" type="submit" value="Login" action="#{tradeapp.login}"/>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table width="616">
+    <tbody>
+        <tr>
+            <td width="2%"></td>
+            <td width="98%">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td bgcolor="#e7e4e7" rowspan="4"></td>
+            <td><b><font size="-1" color="#000000">First time user? &nbsp;Please
+            Register</font></b></td>
+        </tr>
+        <tr>
+            <td></td>
+        </tr>
+        <tr>
+            <td align="right">
+            <blockquote><h:outputLink value="register.faces">Register&nbsp;With&nbsp;DayTrader</h:outputLink>
+            </blockquote>
+            </td>
+        </tr>
+        <tr>
+            <td>
+            <hr/>
+            </td>
+        </tr>
+    </tbody>
+</table>
+<table height="54" style="font-size: smaller">
+    <tbody>
+        <tr>
+            <td colspan="2">
+            <hr/>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2"></td>
+        </tr>
+        <tr>
+            <td bgcolor="#c93333" align="left" width="640" height="10"><b><font
+                color="#ffffff">DayTrader Login</font></b></td>
+            <td align="center" bgcolor="#000000" width="100" height="10"><font
+                color="#ffffff"><b>DayTrader</b></font></td>
+        </tr>
+    </tbody>
+</table>
+</h:form>
+</h:body>
+</html>



Mime
View raw message