geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1071543 [12/15] - in /geronimo/daytrader/trunk: ./ assemblies/javaee/ javaee6/ javaee6/assemblies/ javaee6/assemblies/daytrader-ear/ javaee6/assemblies/daytrader-ear/src/ javaee6/assemblies/daytrader-ear/src/main/ javaee6/assemblies/daytra...
Date Thu, 17 Feb 2011 08:24:04 GMT
Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/account.jsp
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/account.jsp?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/account.jsp (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/account.jsp Thu Feb 17 08:23:57 2011
@@ -0,0 +1,320 @@
+<!--
+ 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 HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>Trade Account information</TITLE>
+<LINK rel="stylesheet" href="style.css" type="text/css" />
+</HEAD>
+<BODY bgcolor="#ffffff" link="#000099" vlink="#000099">
+<%@ page
+    import="java.util.Collection,java.util.Iterator,java.math.BigDecimal,org.apache.geronimo.daytrader.javaee6.core.*,org.apache.geronimo.daytrader.javaee6.entities.*,org.apache.geronimo.daytrader.javaee6.utils.*"
+    session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+<jsp:useBean id="accountData"
+    type="org.apache.geronimo.daytrader.javaee6.entities.AccountDataBean"
+    scope="request" />
+<jsp:useBean id="accountProfileData"
+    type="org.apache.geronimo.daytrader.javaee6.entities.AccountProfileDataBean"
+    scope="request" />
+<jsp:useBean id="orderDataBeans" type="java.util.Collection"
+    scope="request" />
+<TABLE height="54">
+    <TBODY>
+        <TR>
+            <TD bgcolor="#c93333" align="left" width="640" height="10" colspan=5><B><FONT
+                color="#ffffff">DayTrader Account</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><A href="app?action=home">Home</A></B><B> </B></TD>
+            <TD><B><A href="app?action=account">Account</A></B><B> </B></TD>
+            <TD><B><A href="app?action=portfolio">Portfolio</A></B><B> </B></TD>
+            <TD><B><A href="app?action=quotes&amp;symbols=s:0,s:1,s:2,s:3,s:4">Quotes/Trade</A></B></TD>
+            <TD><B><A href="app?action=logout">Logoff</A></B></TD>
+            <TD></TD>
+        </TR>
+        <TR>
+            <TD align="right" colspan="6">
+            <HR>
+            <FONT color="#ff0000" size="-2"><%=new java.util.Date()%></FONT></TD>
+        </TR>
+        <%
+boolean showAllOrders = request.getParameter("showAllOrders") == null ? false
+                    : true;
+            Collection closedOrders = (Collection) request
+                    .getAttribute("closedOrders");
+            if ((closedOrders != null) && (closedOrders.size() > 0)) {
+
+                %>
+        <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">
+            <TABLE border="1" style="font-size: smaller">
+                <TBODY>
+                    <%
+Iterator it = closedOrders.iterator();
+                while (it.hasNext()) {
+                    OrderDataBean closedOrderData = (OrderDataBean) it.next();
+%>
+                    <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">
+                        <TD><%=closedOrderData.getOrderID()%></TD>
+                        <TD><%=closedOrderData.getOrderStatus()%></TD>
+                        <TD><%=closedOrderData.getOpenDate()%></TD>
+                        <TD><%=closedOrderData.getCompletionDate()%></TD>
+                        <TD><%=closedOrderData.getOrderFee()%></TD>
+                        <TD><%=closedOrderData.getOrderType()%></TD>
+                        <TD><%=FinancialUtils.printQuoteLink(closedOrderData
+                                    .getSymbol())%></TD>
+                        <TD><%=closedOrderData.getQuantity()%></TD>
+                    </TR>
+                    <%
+}
+%>
+
+                </TBODY>
+            </TABLE>
+            </TD>
+        </TR>
+        <%
+}
+%>
+    </TBODY>
+</TABLE>
+<TABLE width="620">
+    <TBODY>
+        <TR>
+            <TD valign="top" width="643">
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD colspan="8"><FONT color="#ff0000"><%=results%></FONT></TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="8" align="left" bgcolor="#cccccc"><B>Account
+                        Information</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">account
+                        created:</A></TD>
+                        <TD align="left" valign="bottom" colspan="2"><%=accountData.getCreationDate()%></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">last
+                        login: </A></TD>
+                        <TD align="left" valign="bottom" colspan="3"><%=accountData.getLastLogin()%></TD>
+                        <TD align="left" valign="bottom"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">account
+                        ID</A></TD>
+                        <TD valign="bottom"><%=accountData.getAccountID()%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">total
+                        logins: </A></TD>
+                        <TD valign="bottom"><%=accountData.getLoginCount()%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">cash
+                        balance: </A></TD>
+                        <TD valign="bottom"><%=accountData.getBalance()%></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">user
+                        ID:</A></TD>
+                        <TD valign="bottom"><%=accountData.getProfileID()%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">total
+                        logouts: </A></TD>
+                        <TD valign="bottom"><%=accountData.getLogoutCount()%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD valign="bottom" align="right"><A href="docs/glossary.html">opening
+                        balance: </A></TD>
+                        <TD valign="bottom"><%=accountData.getOpenBalance()%></TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="8"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            <TABLE width="100%">
+                <TBODY>
+
+                    <TR>
+                        <TD colspan="5" bgcolor="#cccccc"><B>Total Orders: </B><%=orderDataBeans.size()%></TD>
+                        <TD bgcolor="#cccccc" align="right"><B><A
+                            href="app?action=account&amp;showAllOrders=true">show all orders</A></B></TD>
+                    </TR>
+                    <TR align="center">
+                        <TD colspan="6">
+                        <TABLE border="1" style="font-size: smaller">
+                            <CAPTION align="bottom"><B>Recent Orders</B></CAPTION>
+                            <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>
+                                    <TD><A href="docs/glossary.html">price</A></TD>
+                                    <TD><A href="docs/glossary.html">total</A></TD>
+                                </TR>
+                                <%Iterator it = orderDataBeans.iterator();
+            int count = 0;
+            while (it.hasNext()) {
+                if ((showAllOrders == false) && (count++ >= 5))
+                    break;
+                OrderDataBean orderData = (OrderDataBean) it.next();
+
+                %>
+                                <TR bgcolor="#fafcb6" align="center">
+                                    <TD><%=orderData.getOrderID()%></TD>
+                                    <TD><%=orderData.getOrderStatus()%></TD>
+                                    <TD><%=orderData.getOpenDate()%></TD>
+                                    <TD><%=orderData.getCompletionDate()%></TD>
+                                    <TD><%=orderData.getOrderFee()%></TD>
+                                    <TD><%=orderData.getOrderType()%></TD>
+                                    <TD><%=FinancialUtils.printQuoteLink(orderData.getSymbol())%></TD>
+                                    <TD><%=orderData.getQuantity()%></TD>
+                                    <TD><%=orderData.getPrice()%></TD>
+                                    <TD><%=orderData.getPrice().multiply(
+                                new BigDecimal(orderData.getQuantity()))%></TD>
+                                </TR>
+                                <%}
+
+            %>
+                            </TBODY>
+                        </TABLE>
+                        </TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="6"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            <FORM>
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD colspan="6" bgcolor="#cccccc"><B>Account Profile</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="top" width="113"><A
+                            href="docs/glossary.html">user ID:</A></TD>
+                        <TD align="left" valign="top" colspan="2" width="228"><INPUT
+                            size="30" type="text" maxlength="30" readonly name="userID"
+                            value="<%= accountProfileData.getUserID() %>"></TD>
+                        <TD align="right" valign="top" width="73" colspan="2"><A
+                            href="docs/glossary.html">full name: </A></TD>
+                        <TD align="left" valign="top"><INPUT size="30" type="text"
+                            maxlength="30" name="fullname"
+                            value="<%= accountProfileData.getFullName() %>"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">password:
+                        </A></TD>
+                        <TD colspan="2" width="228"><INPUT size="30" type="password"
+                            maxlength="30" name="password"
+                            value="<%= accountProfileData.getPassword() %>"></TD>
+                        <TD align="right" width="73" colspan="2"><A
+                            href="docs/glossary.html">address: </A></TD>
+                        <TD><INPUT size="30" type="text" maxlength="30" name="address"
+                            value="<%= accountProfileData.getAddress() %>"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">confirm
+                        password: </A><BR>
+                        </TD>
+                        <TD colspan="2" align="left" width="228"><INPUT size="30"
+                            type="password" maxlength="30" name="cpassword"
+                            value="<%= accountProfileData.getPassword() %>"></TD>
+                        <TD align="right" width="73" colspan="2"><A
+                            href="docs/glossary.html">credit card: </A></TD>
+                        <TD align="left"><INPUT size="30" type="text" maxlength="30"
+                            name="creditcard"
+                            value="<%= accountProfileData.getCreditCard() %>" readonly></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">email
+                        address: </A></TD>
+                        <TD colspan="2" align="left" width="228"><INPUT size="30"
+                            type="text" maxlength="30" name="email"
+                            value="<%= accountProfileData.getEmail() %>"></TD>
+                        <TD align="right" width="73" colspan="2"></TD>
+                        <TD align="center"><INPUT type="submit" name="action"
+                            value="update_profile"></TD>
+                    </TR>
+                    <TR>
+                        <TD width="113"></TD>
+                        <TD colspan="5"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            </FORM>
+            </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">
+                        <FORM action=""><INPUT type="submit" name="action" value="quotes">
+                        <INPUT size="20" type="text" name="symbols"
+                            value="s:0, s:1, s:2, s:3, s:4"></FORM>
+                        </TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            </TD>
+        </TR>
+        <TR>
+            <TD bgcolor="#c93333" align="left" width="640" height="10"><B><FONT
+                color="#ffffff">DayTrader Account</FONT></B></TD>
+            <TD align="center" bgcolor="#000000" width="100" height="10"><FONT
+                color="#ffffff"><B>DayTrader</B></FONT></TD>
+        </TR>
+    </TBODY>
+</TABLE>
+</BODY>
+</HTML>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/accountImg.jsp
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/accountImg.jsp?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/accountImg.jsp (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/accountImg.jsp Thu Feb 17 08:23:57 2011
@@ -0,0 +1,335 @@
+<!--
+ 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 HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>DayTrader Account Information</TITLE>
+<LINK rel="stylesheet" href="style.css" type="text/css" />
+</HEAD>
+<BODY bgcolor="#ffffff" link="#000099" vlink="#000099">
+<%@ page
+    import="java.util.Collection, java.util.Iterator, java.math.BigDecimal, org.apache.geronimo.daytrader.javaee6.core.*, org.apache.geronimo.daytrader.javaee6.entities.*, org.apache.geronimo.daytrader.javaee6.utils.*"
+    session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+<jsp:useBean id="accountData"
+    type="org.apache.geronimo.daytrader.javaee6.entities.AccountDataBean"
+    scope="request" />
+<jsp:useBean id="accountProfileData"
+    type="org.apache.geronimo.daytrader.javaee6.entities.AccountProfileDataBean"
+    scope="request" />
+<jsp:useBean id="orderDataBeans" type="java.util.Collection"
+    scope="request" />
+<TABLE height="54">
+    <TBODY>
+        <TR>
+            <TD bgcolor="#c93333" align="left" width="640" height="10" colspan=5><B><FONT
+                color="#ffffff">DayTrader Account</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><A href="app?action=home"><IMG src="images/menuHome.gif" width="80"
+                height="20" border="0" alt=""></A></TD>
+            <TD><A href="app?action=account"><IMG src="images/account.gif"
+                width="80" height="20" border="0" alt=""></A></TD>
+            <TD><B><A href="app?action=portfolio"><IMG src="images/portfolio.gif"
+                width="80" height="20" border="0" alt=""></A> </B></TD>
+            <TD><A href="app?action=quotes&amp;symbols=s:0,s:1,s:2,s:3,s:4"><IMG
+                src="images/quotes.gif" width="80" height="20" border="0" alt=""></A></TD>
+            <TD><A href="app?action=logout"><IMG src="images/logout.gif"
+                width="80" height="20" border="0" alt=""></A></TD>
+            <TD><IMG src="images/graph.gif" width="32" height="32" border="0"
+                alt=""></TD>
+        </TR>
+        <TR>
+            <TD align="left" colspan="6"><IMG src="images/line.gif" width="600"
+                height="6" border="0" alt=""><FONT color="#ff0000" size="-2"><BR>
+            <%= new java.util.Date() %></FONT></TD>
+        </TR>
+        <%
+boolean showAllOrders = request.getParameter("showAllOrders")==null?false:true;
+Collection closedOrders = (Collection)request.getAttribute("closedOrders");
+if ( (closedOrders != null) && (closedOrders.size()>0) )
+{
+%>
+        <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">
+            <TABLE border="1" style="font-size: smaller">
+                <TBODY>
+                    <%
+    Iterator it = closedOrders.iterator();
+    while (it.hasNext() )
+    {
+        OrderDataBean closedOrderData = (OrderDataBean)it.next();
+%>
+                    <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">
+                        <TD><%= closedOrderData.getOrderID()%></TD>
+                        <TD><%= closedOrderData.getOrderStatus()%></TD>
+                        <TD><%= closedOrderData.getOpenDate()%></TD>
+                        <TD><%= closedOrderData.getCompletionDate()%></TD>
+                        <TD><%= closedOrderData.getOrderFee()%></TD>
+                        <TD><%= closedOrderData.getOrderType()%></TD>
+                        <TD><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%></TD>
+                        <TD><%= closedOrderData.getQuantity()%></TD>
+                    </TR>
+                    <%
+    }
+%>
+
+                </TBODY>
+            </TABLE>
+            </TD>
+        </TR>
+        <%
+}
+%>
+    </TBODY>
+</TABLE>
+<TABLE width="620">
+    <TBODY>
+        <TR>
+            <TD valign="top" width="643">
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD colspan="8"><FONT color="#ff0000"><%= results %></FONT></TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="8" align="left" bgcolor="#cccccc"><B>Account
+                        Information</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">account
+                        created:</A></TD>
+                        <TD align="left" valign="bottom" colspan="2"><%= accountData.getCreationDate()
+%></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">last
+                        login: </A></TD>
+                        <TD align="left" valign="bottom" colspan="3"><%= accountData.getLastLogin()
+%></TD>
+                        <TD align="left" valign="bottom"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">account
+                        ID</A></TD>
+                        <TD valign="bottom"><%= accountData.getAccountID()
+%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">total
+                        logins: </A></TD>
+                        <TD valign="bottom"><%= accountData.getLoginCount()
+%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">cash
+                        balance: </A></TD>
+                        <TD valign="bottom"><%= accountData.getBalance()
+%></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">user
+                        ID:</A></TD>
+                        <TD valign="bottom"><%= accountData.getProfileID()
+%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD align="right" valign="bottom"><A href="docs/glossary.html">total
+                        logouts: </A></TD>
+                        <TD valign="bottom"><%= accountData.getLogoutCount()
+%></TD>
+                        <TD valign="bottom"></TD>
+                        <TD valign="bottom" align="right"><A href="docs/glossary.html">opening
+                        balance: </A></TD>
+                        <TD valign="bottom"><%= accountData.getOpenBalance()
+%></TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="8"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            <TABLE width="100%">
+                <TBODY>
+
+                    <TR>
+                        <TD colspan="5" bgcolor="#cccccc"><B>Total Orders: </B><%= orderDataBeans.size()
+%></TD>
+                        <TD bgcolor="#cccccc" align="right"><B><A
+                            href="app?action=account&amp;showAllOrders=true">show all orders</A></B></TD>
+                    </TR>
+                    <TR align="center">
+                        <TD colspan="6">
+                        <TABLE border="1" style="font-size: smaller">
+                            <CAPTION align="bottom"><B>Recent Orders</B></CAPTION>
+                            <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>
+                                    <TD><A href="docs/glossary.html">price</A></TD>
+                                    <TD><A href="docs/glossary.html">total</A></TD>
+                                </TR>
+                                <% 
+Iterator it = orderDataBeans.iterator();
+int count=0;
+while (it.hasNext()) {
+    if ( (showAllOrders == false) && (count++ >= 5) )
+        break;
+    OrderDataBean orderData = (OrderDataBean) it.next();                            
+                         %>
+                                <TR bgcolor="#fafcb6" align="center">
+                                    <TD><%= orderData.getOrderID() %></TD>
+                                    <TD><%= orderData.getOrderStatus() %></TD>
+                                    <TD><%= orderData.getOpenDate() %></TD>
+                                    <TD><%= orderData.getCompletionDate() %></TD>
+                                    <TD><%= orderData.getOrderFee() %></TD>
+                                    <TD><%= orderData.getOrderType() %></TD>
+                                    <TD><%= FinancialUtils.printQuoteLink(orderData.getSymbol()) %></TD>
+                                    <TD><%= orderData.getQuantity() %></TD>
+                                    <TD><%= orderData.getPrice() %></TD>
+                                    <TD><%= orderData.getPrice().multiply(new BigDecimal(orderData.getQuantity())) %></TD>
+                                </TR>
+                                <% }
+                %>
+                            </TBODY>
+                        </TABLE>
+                        </TD>
+                    </TR>
+                    <TR>
+                        <TD colspan="6"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            <FORM>
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD colspan="6" bgcolor="#cccccc"><B>Account Profile</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" valign="top" width="113"><A
+                            href="docs/glossary.html">user ID:</A></TD>
+                        <TD align="left" valign="top" colspan="2" width="228"><INPUT
+                            size="30" type="text" maxlength="30" readonly name="userID"
+                            value="<%= accountProfileData.getUserID() %>"></TD>
+                        <TD align="right" valign="top" width="73" colspan="2"><A
+                            href="docs/glossary.html">full name: </A></TD>
+                        <TD align="left" valign="top"><INPUT size="30" type="text"
+                            maxlength="30" name="fullname"
+                            value="<%= accountProfileData.getFullName() %>"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">password:
+                        </A></TD>
+                        <TD colspan="2" width="228"><INPUT size="30" type="password"
+                            maxlength="30" name="password"
+                            value="<%= accountProfileData.getPassword() %>"></TD>
+                        <TD align="right" width="73" colspan="2"><A
+                            href="docs/glossary.html">address: </A></TD>
+                        <TD><INPUT size="30" type="text" maxlength="30" name="address"
+                            value="<%= accountProfileData.getAddress() %>"></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">confirm
+                        password: </A><BR>
+                        </TD>
+                        <TD colspan="2" align="left" width="228"><INPUT size="30"
+                            type="password" maxlength="30" name="cpassword"
+                            value="<%= accountProfileData.getPassword() %>"></TD>
+                        <TD align="right" width="73" colspan="2"><A
+                            href="docs/glossary.html">credit card: </A></TD>
+                        <TD align="left"><INPUT size="30" type="text" maxlength="30"
+                            name="creditcard"
+                            value="<%= accountProfileData.getCreditCard() %>" readonly></TD>
+                    </TR>
+                    <TR>
+                        <TD align="right" width="113"><A href="docs/glossary.html">email
+                        address: </A></TD>
+                        <TD colspan="2" align="left" width="228"><INPUT size="30"
+                            type="text" maxlength="30" name="email"
+                            value="<%= accountProfileData.getEmail() %>"></TD>
+                        <TD align="right" width="73" colspan="2"></TD>
+                        <TD align="center"><INPUT type="submit" name="action"
+                            value="update_profile"></TD>
+                    </TR>
+                    <TR>
+                        <TD width="113"></TD>
+                        <TD colspan="5"></TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            </FORM>
+            </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">
+                        <FORM action=""><INPUT type="submit" name="action" value="quotes">
+                        <INPUT size="20" type="text" name="symbols"
+                            value="s:0, s:1, s:2, s:3, s:4"></FORM>
+                        </TD>
+                    </TR>
+                </TBODY>
+            </TABLE>
+            </TD>
+        </TR>
+        <TR>
+            <TD bgcolor="#c93333" align="left" width="640" height="10"><B><FONT
+                color="#ffffff">DayTrader Account</FONT></B></TD>
+            <TD align="center" bgcolor="#000000" width="100" height="10"><FONT
+                color="#ffffff"><B>DayTrader</B></FONT></TD>
+        </TR>
+        <TR>
+            <TD colspan="4" align="center"><IMG src="images/ticker-anim.gif"
+                width="385" height="22" border="0" align="middle" alt=""></TD>
+        </TR>
+    </TBODY>
+</TABLE>
+</BODY>
+</HTML>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/config.jsp
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/config.jsp?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/config.jsp (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/config.jsp Thu Feb 17 08:23:57 2011
@@ -0,0 +1,288 @@
+<!--
+ 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" xml:lang="en" lang="en" 
+           xmlns:f="http://java.sun.com/jsf/core" 
+           xmlns:h=http://java.sun.com/jsf/html
+            xmlns:ui="http://java.sun.com/jsf/facelets">
+            
+<h:head>Welcome to DayTrader</h:head>          
+<h:body bgcolor="#ffffff" link="#000099">
+<%@ page import="org.apache.geronimo.daytrader.javaee6.utils.TradeConfig"
+session="false" isThreadSafe="true" isErrorPage="false"%>
+
+<table style="font-size: smaller">
+<tbody>
+<tr>
+<td bgcolor="#c93333" align="left" width="640" height="10"><b><FONT
+color="#ffffff">DayTrader Configuration</FONT></b></td>
+<td align="center" bgcolor="#000000" width="100" height="10"><FONT
+color="#ffffff"><b>DayTrader</b></FONT></td>
+</tr>
+<tr>
+<td colspan="6">
+<hr>
+</td>
+</tr>
+<tr>
+<td colspan="6"></td>
+</tr>
+</tbody>
+</table>
+
+<%
+String status;
+status = (String) request.getAttribute("status");
+if (status != null) {
+%>
+<table width="740" height="30">
+<tbody>
+<tr>
+<td></td>
+<td><FONT color="#ff0033"><% out.print(status); %> </FONT></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+<%
+}
+%>
+
+<h:form action="config" method="POST">
+<h:inputHidden id="name" value="updateConfig"></h:inputHidden>
+<!--<INPUT type="hidden" name="action"
+value="updateConfig">-->
+
+<table border="1" width="740">
+<tbody>
+<tr>
+<td colspan="2">The current DayTrader runtime configuration is
+detailed below. View and optionally update run-time parameters.
+&nbsp;<br>
+<br>
+<b>NOTE: </b>Parameters settings will return to default
+on&nbsp;server restart. To make configuration settings persistent
+across application server stop/starts, edit the servlet init
+parameters for each DayTrader servlet. This is described in the <A
+href="docs/tradeFAQ.html">DayTrader FAQ</A>.<br>
+<hr>
+</td>
+</tr>
+<tr>
+<td align="left"><b>Run-Time Mode </b>
+<P align="left"><%String configParm = "RunTimeMode";
+String names[] = TradeConfig.runTimeModeNames;
+int index = TradeConfig.runTimeMode;
+for (int i = 0; i < names.length; i++) {
+out.print(
+"<INPUT type=\"radio\" name=\""
++ configParm
++ "\" value=\""
++ i
++ "\" ");
+if (index == i)
+out.print("checked");
+out.print("> " + names[i] + "<br>");
+}
+%></P>
+</td>
+<td><br>
+Run Time Mode determines server implementation of the TradeServices
+to use in the DayTrader application Enterprise Java beans including
+Session, Entity and Message beans or Direct mode which uses direct
+database and JMS access. See <A href="docs/tradeFAQ.html">DayTrader
+FAQ</A> for details.<br>
+</td>
+</tr>
+
+<tr>
+<td align="left"><b>Scenario Workload Mix</b>
+<P align="left"><%configParm = "WorkloadMix";
+names = TradeConfig.workloadMixNames;
+index = TradeConfig.workloadMix;
+for (int i = 0; i < names.length; i++) {
+out.print(
+"<INPUT type=\"radio\" name=\""
++ configParm
++ "\" value=\""
++ i
++ "\" ");
+if (index == i)
+out.print("checked");
+out.print("> " + names[i] + "<br>");
+}
+%></P>
+</td>
+<td>This setting determines the runtime workload mix of DayTrader
+operations when driving the benchmark through TradeScenarioServlet.
+See <a href="docs/tradeFAQ.html">DayTrader FAQ</a> for details.</td>
+</tr>
+<tr>
+<td align="left"><b>WebInterface</b>
+<P align="left"><%configParm = "WebInterface";
+names = TradeConfig.webInterfaceNames;
+index = TradeConfig.webInterface;
+for (int i = 0; i < names.length; i++) {
+out.print(
+"<INPUT type=\"radio\" name=\""
++ configParm
++ "\" value=\""
++ i
++ "\" ");
+if (index == i)
+out.print("checked");
+out.print("> " + names[i] + "<br>");
+}
+%></P>
+</td>
+<td>This setting determines the Web interface technology used, JSPs
+or JSPs with static images and GIFs.</td>
+</tr>
+<!--<tr>
+<td align="left">
+<b>Caching Type</b>
+<P align="left"><%configParm = "CachingType";
+names = TradeConfig.cachingTypeNames;
+index = TradeConfig.cachingType;
+for (int i = 0; i < names.length; i++) {
+out.print(
+"<INPUT type=\"radio\" name=\""
++ configParm
++ "\" value=\""
++ i
++ "\" ");
+if (index == i)
+out.print("checked");
+out.print("> " + names[i] + "<br>");
+}
+%></P>
+</td>
+<td>
+This setting determines the caching technology used for data caching
+, DistributedMap, Command Caching or No Caching.
+</td>
+</tr>-->
+<tr>
+<td colspan="2" align="center"><b>Miscellaneous Settings</b></td>
+</tr>
+<tr>
+<td align="left"><b>DayTrader Max Users </b><br>
+<h:inputText size="25" label="MaxUsers" value="#{TradeConfig.getMAX_USERS}">
+<!--<INPUT size="25" type="text" name="MaxUsers"
+value="<%=TradeConfig.getMAX_USERS()%>">-->
+<br>
+<b>Trade Max Quotes</b><br>
+<h:inputText size="25" label="MaxQuotes" value="#{TradeConfig.getMAX_QUOTES}">
+<!--<INPUT size="25" type="text" name="MaxQuotes"
+value="<%=TradeConfig.getMAX_QUOTES()%>">-->
+</td>
+<td>by default the DayTrader database is populated with 200 users
+(uid:0 - uid:199) and 400 quotes (s:0 - s:399). <br>
+</td>
+</tr>
+<tr>
+<td align="left"><b>Market Summary Interval</b><br>
+<h:inputText size="25" label="MaxQuotes" value="#{TradeConfig.getMarketSummaryInterval}">
+<!--<INPUT size="25" type="text" name="marketSummaryInterval"
+value="<%=TradeConfig.getMarketSummaryInterval()%>">-->
+</td>
+<td>&lt; 0 Do not perform Market Summary Operations.
+<br>= 0 Perform market Summary on every request.</br>
+<br>&gt; 0 number of seconds between Market Summary Operations</br></td>
+</tr>
+<tr>
+<td align="left"><b>Primitive Iteration</b><br>
+<h:inputText size="25" label="MaxQuotes" value="#{TradeConfig.getPrimIterations}">
+<!--<INPUT size="25" type="text" name="primIterations"
+value="<%=TradeConfig.getPrimIterations()%>">-->
+
+</td>
+<td>by default the DayTrader primitives are execute one operation per
+web request. Change this value to repeat operations multiple times
+per web request.</td>
+</tr>
+
+<tr>
+<h:inputHidden lable="EnablePublishQuotePriceChange" value=""></h:inputHidden>
+<!--<INPUT type="hidden" name="EnablePublishQuotePriceChange" value=""/>-->
+</tr>
+
+<tr>
+<td align="left">
+<!--<h:selectBooleanCheckbox id="EnableLongRun" rendered="true" binding="#{TradeConfig.getLongRun}" />
+<h:outputLabel
+    for="EnableLongRun"
+    rendered="true"
+    binding="#{TradeConfig.getLongRunText}">
+     <h:outputText
+        id="EnableLongRunText"
+        value="#{TradeConfig.getLongRun}" />
+</h:outputLabel>-->
+<INPUT type="checkbox"
+                <%=TradeConfig.getLongRun() ? "checked" : ""%>
+                name="EnableLongRun">
+<b><FONT size="-1">Enable long run support</FONT></b><br>
+            </td>
+            <td>
+                Enable long run support by disabling the show all orders query performed on the Account page.<br>
+            </td>
+        </tr>
+        <tr>
+            <td align="left">
+            <INPUT type="checkbox"
+<%=TradeConfig.getActionTrace() ? "checked" : ""%>
+name="EnableActionTrace"> <b><FONT size="-1">Enable operation trace</FONT></b><br>
+<INPUT type="checkbox" <%=TradeConfig.getTrace() ? "checked" : ""%>
+name="EnableTrace"> <b><FONT size="-1">Enable full trace</FONT></b>
+</td>
+<td>Enable DayTrader processing trace messages<br>
+</td>
+</tr>
+<tr>
+<td colspan="2" align="right">
+<!--<INPUT type="submit"
+value="Update Config">-->
+<h:commandButton value="Submit"
+     action="Update Config"/>
+<h:
+</td>
+</tr>
+</tbody>
+</table>
+
+<table width="740" 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 Configuration</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/configure.html
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/configure.html?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/configure.html (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/configure.html Thu Feb 17 08:23:57 2011
@@ -0,0 +1,95 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ 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.
+-->
+<!-- Sample HTML file -->
+
+<HTML>
+<HEAD>
+    <META http-equiv="Content-Style-Type" content="text/css">
+    <TITLE>Configuration and utilities</TITLE>
+</HEAD>
+
+<BODY BGCOLOR="#FFFFFF">
+<TABLE width="740" align="left" border="1">
+    <TBODY>
+        <TR>
+            <TD align="center" colspan="2">
+                <H3>Configuration Utilities</H3>
+            </TD>
+        </TR>
+        <TR>
+            <TD align="center"><B><FONT face="Times New Roman" size="-1">Benchmark
+                Configuration <BR>
+                Tools</FONT></B></TD>
+            <TD align="center"><B><FONT face="Times New Roman" size="-1"></FONT>Description
+            </B></TD>
+        </TR>
+        <TR>
+            <TD><A href="config?action=resetTrade"><FONT face="Times New Roman"
+                                                         size="-1">Reset DayTrader<BR>
+                (to be done before each run)</FONT></A></TD>
+            <TD>Reset the DayTrader runtime to a clean starting point by logging
+                off all users, removing new registrations and other general cleanup.
+                For consistent results this URL should be run <B>before each </B>Trade
+                run.</TD>
+        </TR>
+        <TR>
+            <TD><A href="config" target="_self"><FONT face="Times New Roman"
+                                                      size="-1">Configure DayTrader run-time parameters</FONT></A></TD>
+            <TD>This link provides an interface to set configuration parameters
+                that control DayTrader run-time characteristics such as using EJBs or
+                JDBC. This link also provides utilities such as setting the UID and
+                Password for a remote or protected database when using JDBC.</TD>
+        </TR>
+        <TR>
+            <TD><A href="config?action=buildDBTables"><FONT
+                    face="Times New Roman" size="-1">(Re)-create
+                &nbsp;DayTrader&nbsp;Database Tables and Indexes</FONT></A></TD>
+            <TD>This link is used to (a) initially create or (b) drop and re-create the
+                DayTrader tables. <b>A DayTrader database should exist before doing this action</b>, 
+                the existing DayTrader tables, if any, are dropped, then new
+                tables and indexes are created. <b>Please stop and re-start the Daytrader application 
+                (or your application server) after this action and then use the "Repopulate 
+                DayTrader Database" link below to repopulate the new database tables.</b></TD>
+        </TR>
+        <TR>
+            <TD><A href="config?action=buildDB"><FONT
+                    face="Times New Roman" size="-1">(Re)-populate
+                &nbsp;DayTrader&nbsp;Database</FONT></A></TD>
+            <TD>This link is used to initially populate or re-populate the
+                DayTrader database with fictitious users (uid:0, uid:1, ...) and
+                stocks (s:0, s:1, ...). First all existing users and stocks are
+                deleted (if any). The database is then populated with a new set of
+                DayTrader users and stocks. This option does not drop and recreate the 
+                Daytrader db tables.</TD>
+        </TR>
+        <TR>
+            <TD><A href="scenario" target="_blank"><FONT face="Times New Roman"
+                                                         size="-1">Test DayTrader Scenario</FONT></A></TD>
+            <TD>This links pops up a browser to manually step through a DayTrader
+                scenario by hitting &quot;Reload&quot; on your browser</TD>
+        </TR>
+        <TR>
+            <TD><FONT size="-1"><A href="docs/tradeversion.html">DayTrader
+                Version</A></FONT></TD>
+            <TD>DayTrader application version and change history information</TD>
+        </TR>
+    </TBODY>
+</TABLE>
+
+</BODY>
+</HTML>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/contentHome.html
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/contentHome.html?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/contentHome.html (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/contentHome.html Thu Feb 17 08:23:57 2011
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ 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.
+-->
+<!-- Sample HTML file -->
+
+<HTML>
+<HEAD>
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>Geronimo performance benchmark sample overview</TITLE>
+</HEAD>
+
+<BODY bgcolor="#FFFFFF">
+<TABLE width="740">
+	<TR>
+		<TD>
+		<HR>
+		</TD>
+	</TR>
+	<TR>
+		<TD>
+		<P align="left"><FONT size="+1"><B>Overview</B></FONT></P>
+		<BLOCKQUOTE><FONT face="Times New Roman" size="-1">The Geronimo<SUP>TM</SUP>
+		performance benchmark sample provides a suite of Apache developed
+		workloads for characterizing performance of the Geronimo J2EE
+		Application Server. The workloads consist of an end to end web
+		application and a full set of primitives. The applications are a
+		collection of Java classes, Java Servlets, Java Server Pages, Web
+		Services, and Enterprise Java Beans built to open J2EE APIs. Together
+		these provide versatile and portable test cases designed to measure
+		aspects of scalability and performance.</FONT></BLOCKQUOTE>
+		<P align="center"><IMG src="images/tradeOverview.png" width="717" height="538" border="0" alt=""> <BR>
+		<B>DayTrader J2EE Components </B><BR>
+		<B>Model-View-Controller Architecture</B></P>
+		<BLOCKQUOTE><FONT size="-1"><B>DayTrader</B><BR>
+		DayTrader is the Geronimo end-to-end benchmark and performance sample
+		application. The new DayTrader benchmark has been re-designed and
+		developed to cover Geronimo's significantly expanding programming
+		model. This provides a real world workload driving Geronimo's
+		implementation of J2EE 1.4 and Web Services including key Geronimo
+		performance components and features.<BR>
+		<BR>
+		DayTrader's new design spans J2EE 1.4 including the new EJB 2.1
+		component architecture, Message Driven beans, transactions (1-phase,
+		2-phase commit) and Web Services (SOAP, WSDL).<BR>
+		<BR>
+		<B>Primitives</B><BR>
+		</FONT><FONT face="Times New Roman" size="-1">The <A
+			href="web_prmtv.html">Primitives</A> provide a set of workloads to
+		individually test various components of the Geronimo Application
+		Server. The primitives leverage the DayTrader application
+		infrastructure to test specific Geronimo J2EE components such as the
+		servlet engine, JSP support, EJB Entitiy, Session and Message Driven
+		beans, HTTP Session support and more.</FONT></BLOCKQUOTE>
+		<BLOCKQUOTE><FONT face="Times New Roman" size="-1">Additional overview
+		information is included in the <A href="docs/tradeFAQ.html">FAQ</A></FONT></BLOCKQUOTE>
+		</TD>
+	</TR>
+	<TR>
+		<TD>
+		<HR>
+		</TD>
+	</TR>
+</TABLE>
+
+</BODY>
+</HTML>

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/db2/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/db2/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/db2/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/db2/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,107 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB;
+DROP TABLE ACCOUNTPROFILEEJB;
+DROP TABLE QUOTEEJB;
+DROP TABLE KEYGENEJB;
+DROP TABLE ACCOUNTEJB;
+DROP TABLE ORDEREJB;
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY DOUBLE NOT NULL,
+   PURCHASEDATE TIMESTAMP,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250));
+
+ALTER TABLE HOLDINGEJB
+  ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR(250),
+   PASSWD VARCHAR(250),
+   USERID VARCHAR(250) NOT NULL,
+   EMAIL VARCHAR(250),
+   CREDITCARD VARCHAR(250),
+   FULLNAME VARCHAR(250));
+
+ALTER TABLE ACCOUNTPROFILEEJB
+  ADD CONSTRAINT PK_ACCOUNTPROFILE2 PRIMARY KEY (USERID);
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME DOUBLE NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(250),
+   SYMBOL VARCHAR(250) NOT NULL,
+   CHANGE1 DOUBLE NOT NULL);
+
+ALTER TABLE QUOTEEJB
+  ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(250) NOT NULL);
+
+ALTER TABLE KEYGENEJB
+  ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE TIMESTAMP,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN TIMESTAMP,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(250));
+
+ALTER TABLE ACCOUNTEJB
+  ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE TIMESTAMP,
+   ORDERTYPE VARCHAR(250),
+   ORDERSTATUS VARCHAR(250),
+   PRICE DECIMAL(14, 2),
+   QUANTITY DOUBLE NOT NULL,
+   OPENDATE TIMESTAMP,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250),
+   HOLDING_HOLDINGID INTEGER);
+
+ALTER TABLE ORDEREJB
+  ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+ALTER TABLE HOLDINGEJB VOLATILE;
+ALTER TABLE ACCOUNTPROFILEEJB VOLATILE;
+ALTER TABLE QUOTEEJB VOLATILE;
+ALTER TABLE KEYGENEJB VOLATILE;
+ALTER TABLE ACCOUNTEJB VOLATILE;
+ALTER TABLE ORDEREJB VOLATILE;
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/derby/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/derby/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/derby/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/derby/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,107 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB;
+DROP TABLE ACCOUNTPROFILEEJB;
+DROP TABLE QUOTEEJB;
+DROP TABLE KEYGENEJB;
+DROP TABLE ACCOUNTEJB;
+DROP TABLE ORDEREJB;
+
+DROP TABLE OPENJPASEQ;
+
+create table OPENJPASEQ
+(ID SMALLINT NOT NULL PRIMARY KEY,
+SEQUENCE_VALUE BIGINT);
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY DOUBLE NOT NULL,
+   PURCHASEDATE TIMESTAMP,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250));
+
+ALTER TABLE HOLDINGEJB
+  ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR(250),
+   PASSWD VARCHAR(250),
+   USERID VARCHAR(250) NOT NULL,
+   EMAIL VARCHAR(250),
+   CREDITCARD VARCHAR(250),
+   FULLNAME VARCHAR(250));
+
+ALTER TABLE ACCOUNTPROFILEEJB
+  ADD CONSTRAINT PK_ACCOUNTPROFILE2 PRIMARY KEY (USERID);
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME DOUBLE NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(250),
+   SYMBOL VARCHAR(250) NOT NULL,
+   CHANGE1 DOUBLE NOT NULL);
+
+ALTER TABLE QUOTEEJB
+  ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(250) NOT NULL);
+
+ALTER TABLE KEYGENEJB
+  ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE TIMESTAMP,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN TIMESTAMP,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(250));
+
+ALTER TABLE ACCOUNTEJB
+  ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE TIMESTAMP,
+   ORDERTYPE VARCHAR(250),
+   ORDERSTATUS VARCHAR(250),
+   PRICE DECIMAL(14, 2),
+   QUANTITY DOUBLE NOT NULL,
+   OPENDATE TIMESTAMP,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250),
+   HOLDING_HOLDINGID INTEGER);
+
+ALTER TABLE ORDEREJB
+  ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);
+

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/informix/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/informix/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/informix/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/informix/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,88 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB;
+DROP TABLE ACCOUNTPROFILEEJB;
+DROP TABLE QUOTEEJB;
+DROP TABLE KEYGENEJB;
+DROP TABLE ACCOUNTEJB;
+DROP TABLE ORDEREJB;
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL PRIMARY KEY CONSTRAINT HOLDINGID,
+   QUANTITY FLOAT NOT NULL,
+   PURCHASEDATE DATETIME YEAR TO SECOND,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255));
+
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR(255),
+   PASSWD VARCHAR(255),
+   USERID VARCHAR(255) NOT NULL PRIMARY KEY CONSTRAINT USERID,
+   EMAIL VARCHAR(255),
+   CREDITCARD VARCHAR(255),
+   FULLNAME VARCHAR(255));
+
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME FLOAT NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(255),
+   SYMBOL VARCHAR(255) NOT NULL PRIMARY KEY CONSTRAINT SYMBOL,
+   CHANGE1 FLOAT NOT NULL);
+
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(255) NOT NULL PRIMARY KEY CONSTRAINT KEYNAME);
+
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE DATETIME YEAR TO SECOND,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL PRIMARY KEY CONSTRAINT ACCOUNTID,
+   LASTLOGIN DATETIME YEAR TO SECOND,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(255));
+
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE DATETIME YEAR TO SECOND,
+   ORDERTYPE VARCHAR(255),
+   ORDERSTATUS VARCHAR(255),
+   PRICE DECIMAL(14, 2),
+   QUANTITY FLOAT NOT NULL,
+   OPENDATE DATETIME YEAR TO SECOND,
+   ORDERID INTEGER NOT NULL PRIMARY KEY CONSTRAINT ORDERID,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255),
+   HOLDING_HOLDINGID INTEGER);
+
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/mysql/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/mysql/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/mysql/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/mysql/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,107 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE holdingejb;
+DROP TABLE accountprofileejb;
+DROP TABLE quoteejb;
+DROP TABLE keygenejb;
+DROP TABLE accountejb;
+DROP TABLE orderejb;
+
+CREATE TABLE holdingejb
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY DOUBLE NOT NULL,
+   PURCHASEDATE DATETIME,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255));
+
+ALTER TABLE holdingejb 
+    ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE accountprofileejb
+  (ADDRESS VARCHAR(255),
+   PASSWD VARCHAR(255),
+   USERID VARCHAR(255) NOT NULL,
+   EMAIL VARCHAR(255),
+   CREDITCARD VARCHAR(255),
+   FULLNAME VARCHAR(255));
+
+ALTER TABLE accountprofileejb 
+    ADD CONSTRAINT PK_ACCOUNTPROFILE2 PRIMARY KEY (USERID);
+
+CREATE TABLE quoteejb
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME DOUBLE NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(255),
+   SYMBOL VARCHAR(255) NOT NULL,
+   CHANGE1 DOUBLE NOT NULL);
+
+ALTER TABLE quoteejb 
+    ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE keygenejb
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(255) NOT NULL);
+
+ALTER TABLE keygenejb 
+    ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE accountejb
+  (CREATIONDATE DATETIME,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN DATETIME,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(255));
+
+ALTER TABLE accountejb 
+    ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE orderejb
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE DATETIME,
+   ORDERTYPE VARCHAR(255),
+   ORDERSTATUS VARCHAR(255),
+   PRICE DECIMAL(14, 2),
+   QUANTITY DOUBLE NOT NULL,
+   OPENDATE DATETIME,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255),
+   HOLDING_HOLDINGID INTEGER);
+
+ALTER TABLE orderejb 
+    ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+## ALTER TABLE HOLDINGEJB VOLATILE;
+## ALTER TABLE ACCOUNTPROFILEEJB VOLATILE;
+## ALTER TABLE QUOTEEJB VOLATILE;
+## ALTER TABLE KEYGENEJB VOLATILE;
+## ALTER TABLE ACCOUNTEJB VOLATILE;
+## ALTER TABLE ORDEREJB VOLATILE;
+
+CREATE INDEX ACCOUNT_USERID ON accountejb(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON holdingejb(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON orderejb(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON orderejb(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON orderejb(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/oracle/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/oracle/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/oracle/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/oracle/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,100 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB cascade constraints;
+DROP TABLE ACCOUNTPROFILEEJB cascade constraints;
+DROP TABLE QUOTEEJB cascade constraints;
+DROP TABLE KEYGENEJB cascade constraints;
+DROP TABLE ACCOUNTEJB cascade constraints;
+DROP TABLE ORDEREJB cascade constraints;
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2) NULL,
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY NUMBER NOT NULL,
+   PURCHASEDATE DATE NULL,
+   ACCOUNT_ACCOUNTID INTEGER NULL,
+   QUOTE_SYMBOL VARCHAR2(250) NULL);
+
+ALTER TABLE HOLDINGEJB
+  ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR2(250) NULL,
+   PASSWD VARCHAR2(250) NULL,
+   USERID VARCHAR2(250) NOT NULL,
+   EMAIL VARCHAR2(250) NULL,
+   CREDITCARD VARCHAR2(250) NULL,
+   FULLNAME VARCHAR2(250) NULL);
+
+ALTER TABLE ACCOUNTPROFILEEJB
+  ADD CONSTRAINT PK_ACCOUNTPROFILEEJB PRIMARY KEY (USERID);
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2) NULL,
+   OPEN1 DECIMAL(14, 2) NULL,
+   VOLUME NUMBER NOT NULL,
+   PRICE DECIMAL(14, 2) NULL,
+   HIGH DECIMAL(14, 2) NULL,
+   COMPANYNAME VARCHAR2(250) NULL,
+   SYMBOL VARCHAR2(250) NOT NULL,
+   CHANGE1 NUMBER NOT NULL);
+
+ALTER TABLE QUOTEEJB
+  ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR2(250) NOT NULL);
+
+ALTER TABLE KEYGENEJB
+  ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE DATE NULL,
+   OPENBALANCE DECIMAL(14, 2) NULL,
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2) NULL,
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN DATE NULL,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR2(250) NULL);
+
+ALTER TABLE ACCOUNTEJB
+  ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2) NULL,
+   COMPLETIONDATE DATE NULL,
+   ORDERTYPE VARCHAR2(250) NULL,
+   ORDERSTATUS VARCHAR2(250) NULL,
+   PRICE DECIMAL(14, 2) NULL,
+   QUANTITY NUMBER NOT NULL,
+   OPENDATE DATE NULL,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER NULL,
+   QUOTE_SYMBOL VARCHAR2(250) NULL,
+   HOLDING_HOLDINGID INTEGER NULL);
+
+ALTER TABLE ORDEREJB
+  ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/other/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/other/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/other/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/other/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,107 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB;
+DROP TABLE ACCOUNTPROFILEEJB;
+DROP TABLE QUOTEEJB;
+DROP TABLE KEYGENEJB;
+DROP TABLE ACCOUNTEJB;
+DROP TABLE ORDEREJB;
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY DOUBLE NOT NULL,
+   PURCHASEDATE TIMESTAMP,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250));
+
+ALTER TABLE HOLDINGEJB
+  ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR(250),
+   PASSWD VARCHAR(250),
+   USERID VARCHAR(250) NOT NULL,
+   EMAIL VARCHAR(250),
+   CREDITCARD VARCHAR(250),
+   FULLNAME VARCHAR(250));
+
+ALTER TABLE ACCOUNTPROFILEEJB
+  ADD CONSTRAINT PK_ACCOUNTPROFILE2 PRIMARY KEY (USERID);
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME DOUBLE NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(250),
+   SYMBOL VARCHAR(250) NOT NULL,
+   CHANGE1 DOUBLE NOT NULL);
+
+ALTER TABLE QUOTEEJB
+  ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(250) NOT NULL);
+
+ALTER TABLE KEYGENEJB
+  ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE TIMESTAMP,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN TIMESTAMP,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(250));
+
+ALTER TABLE ACCOUNTEJB
+  ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE TIMESTAMP,
+   ORDERTYPE VARCHAR(250),
+   ORDERSTATUS VARCHAR(250),
+   PRICE DECIMAL(14, 2),
+   QUANTITY DOUBLE NOT NULL,
+   OPENDATE TIMESTAMP,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(250),
+   HOLDING_HOLDINGID INTEGER);
+
+ALTER TABLE ORDEREJB
+  ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+ALTER TABLE HOLDINGEJB VOLATILE;
+ALTER TABLE ACCOUNTPROFILEEJB VOLATILE;
+ALTER TABLE QUOTEEJB VOLATILE;
+ALTER TABLE KEYGENEJB VOLATILE;
+ALTER TABLE ACCOUNTEJB VOLATILE;
+ALTER TABLE ORDEREJB VOLATILE;
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/postgre/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/postgre/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/postgre/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/postgre/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,102 @@
+--    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.
+
+-- Each SQL statement in this file should terminate with a semicolon (;)
+-- Lines starting with the pound character (#) are considered as comments
+
+-- If you first time initialize postgre db, the drop statements should be commented out as following.
+-- DROP TABLE holdingejb;
+-- DROP TABLE accountprofileejb;
+-- DROP TABLE quoteejb;
+-- DROP TABLE keygenejb;
+-- DROP TABLE accountejb;
+-- DROP TABLE orderejb;
+
+CREATE TABLE holdingejb
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INTEGER NOT NULL,
+   QUANTITY DOUBLE PRECISION NOT NULL,
+   PURCHASEDATE TIMESTAMP,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255));
+
+ALTER TABLE holdingejb 
+    ADD CONSTRAINT PK_HOLDINGEJB PRIMARY KEY (HOLDINGID);
+
+CREATE TABLE accountprofileejb
+  (ADDRESS VARCHAR(255),
+   PASSWD VARCHAR(255),
+   USERID VARCHAR(255) NOT NULL,
+   EMAIL VARCHAR(255),
+   CREDITCARD VARCHAR(255),
+   FULLNAME VARCHAR(255));
+
+ALTER TABLE accountprofileejb 
+    ADD CONSTRAINT PK_ACCOUNTPROFILE2 PRIMARY KEY (USERID);
+
+CREATE TABLE quoteejb
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME DOUBLE PRECISION NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(255),
+   SYMBOL VARCHAR(255) NOT NULL,
+   CHANGE1 DOUBLE PRECISION NOT NULL);
+
+ALTER TABLE quoteejb 
+    ADD CONSTRAINT PK_QUOTEEJB PRIMARY KEY (SYMBOL);
+
+CREATE TABLE keygenejb
+  (KEYVAL INTEGER NOT NULL,
+   KEYNAME VARCHAR(255) NOT NULL);
+
+ALTER TABLE keygenejb 
+    ADD CONSTRAINT PK_KEYGENEJB PRIMARY KEY (KEYNAME);
+
+CREATE TABLE accountejb
+  (CREATIONDATE TIMESTAMP,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INTEGER NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INTEGER NOT NULL,
+   LASTLOGIN TIMESTAMP,
+   LOGINCOUNT INTEGER NOT NULL,
+   PROFILE_USERID VARCHAR(255));
+
+ALTER TABLE accountejb 
+    ADD CONSTRAINT PK_ACCOUNTEJB PRIMARY KEY (ACCOUNTID);
+
+CREATE TABLE orderejb
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE TIMESTAMP,
+   ORDERTYPE VARCHAR(255),
+   ORDERSTATUS VARCHAR(255),
+   PRICE DECIMAL(14, 2),
+   QUANTITY DOUBLE PRECISION NOT NULL,
+   OPENDATE TIMESTAMP,
+   ORDERID INTEGER NOT NULL,
+   ACCOUNT_ACCOUNTID INTEGER,
+   QUOTE_SYMBOL VARCHAR(255),
+   HOLDING_HOLDINGID INTEGER);
+
+ALTER TABLE orderejb 
+    ADD CONSTRAINT PK_ORDEREJB PRIMARY KEY (ORDERID);
+
+CREATE INDEX ACCOUNT_USERID ON accountejb(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON holdingejb(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON orderejb(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON orderejb(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON orderejb(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/sqlserver/Table.ddl
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/sqlserver/Table.ddl?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/sqlserver/Table.ddl (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/dbscripts/sqlserver/Table.ddl Thu Feb 17 08:23:57 2011
@@ -0,0 +1,87 @@
+##    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.
+
+# Each SQL statement in this file should terminate with a semicolon (;)
+# Lines starting with the pound character (#) are considered as comments
+DROP TABLE HOLDINGEJB;
+DROP TABLE ACCOUNTPROFILEEJB;
+DROP TABLE QUOTEEJB;
+DROP TABLE KEYGENEJB;
+DROP TABLE ACCOUNTEJB;
+DROP TABLE ORDEREJB;
+
+CREATE TABLE HOLDINGEJB
+  (PURCHASEPRICE DECIMAL(14, 2),
+   HOLDINGID INT NOT NULL PRIMARY KEY,
+   QUANTITY FLOAT NOT NULL,
+   PURCHASEDATE DATETIME,
+   ACCOUNT_ACCOUNTID INT,
+   QUOTE_SYMBOL VARCHAR(255));
+
+
+CREATE TABLE ACCOUNTPROFILEEJB
+  (ADDRESS VARCHAR(255),
+   PASSWD VARCHAR(255),
+   USERID VARCHAR(255) NOT NULL PRIMARY KEY,
+   EMAIL VARCHAR(255),
+   CREDITCARD VARCHAR(255),
+   FULLNAME VARCHAR(255));
+
+
+CREATE TABLE QUOTEEJB
+  (LOW DECIMAL(14, 2),
+   OPEN1 DECIMAL(14, 2),
+   VOLUME FLOAT NOT NULL,
+   PRICE DECIMAL(14, 2),
+   HIGH DECIMAL(14, 2),
+   COMPANYNAME VARCHAR(255),
+   SYMBOL VARCHAR(255) NOT NULL PRIMARY KEY,
+   CHANGE1 FLOAT NOT NULL);
+
+
+CREATE TABLE KEYGENEJB
+  (KEYVAL INT NOT NULL,
+   KEYNAME VARCHAR(255) NOT NULL PRIMARY KEY);
+
+
+CREATE TABLE ACCOUNTEJB
+  (CREATIONDATE DATETIME,
+   OPENBALANCE DECIMAL(14, 2),
+   LOGOUTCOUNT INT NOT NULL,
+   BALANCE DECIMAL(14, 2),
+   ACCOUNTID INT NOT NULL PRIMARY KEY,
+   LASTLOGIN DATETIME,
+   LOGINCOUNT INT NOT NULL,
+   PROFILE_USERID VARCHAR(255));
+
+
+CREATE TABLE ORDEREJB
+  (ORDERFEE DECIMAL(14, 2),
+   COMPLETIONDATE DATETIME,
+   ORDERTYPE VARCHAR(255),
+   ORDERSTATUS VARCHAR(255),
+   PRICE DECIMAL(14, 2),
+   QUANTITY FLOAT NOT NULL,
+   OPENDATE DATETIME,
+   ORDERID INT NOT NULL PRIMARY KEY,
+   ACCOUNT_ACCOUNTID INT,
+   QUOTE_SYMBOL VARCHAR(255),
+   HOLDING_HOLDINGID INT);
+
+CREATE INDEX ACCOUNT_USERID ON ACCOUNTEJB(PROFILE_USERID);
+CREATE INDEX HOLDING_ACCOUNTID ON HOLDINGEJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_ACCOUNTID ON ORDEREJB(ACCOUNT_ACCOUNTID);
+CREATE INDEX ORDER_HOLDINGID ON ORDEREJB(HOLDING_HOLDINGID);
+CREATE INDEX CLOSED_ORDERS ON ORDEREJB(ACCOUNT_ACCOUNTID,ORDERSTATUS);

Added: geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/displayQuote.jsp
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/displayQuote.jsp?rev=1071543&view=auto
==============================================================================
--- geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/displayQuote.jsp (added)
+++ geronimo/daytrader/trunk/javaee6/modules/web/src/main/webapp/displayQuote.jsp Thu Feb 17 08:23:57 2011
@@ -0,0 +1,50 @@
+<!--
+ 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.
+-->
+<%@ page
+    import="java.math.BigDecimal, org.apache.geronimo.daytrader.javaee6.core.*, org.apache.geronimo.daytrader.javaee6.entities.*, org.apache.geronimo.daytrader.javaee6.utils.*"
+    session="true" isThreadSafe="true" isErrorPage="false"%>
+<% 
+    String symbol = request.getParameter("symbol");
+    TradeServices tAction=null;
+    tAction = new TradeAction();
+    try { 
+        QuoteDataBean quoteData = tAction.getQuote(symbol);
+
+ %>
+<TR align="center" bgcolor="#fafcb6">
+    <TD><%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %></TD>
+    <TD><%= quoteData.getCompanyName()%></TD>
+    <TD><%= quoteData.getVolume()%></TD>
+    <TD><%= quoteData.getLow() + " - " + quoteData.getHigh()%></TD>
+    <TD nowrap><%= quoteData.getOpen()%></TD>
+    <TD>$ <%= quoteData.getPrice()%></TD>
+    <TD><%= FinancialUtils.printGainHTML(new BigDecimal(quoteData.getChange())) %>
+    <%= FinancialUtils.printGainPercentHTML( FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen())) %></TD>
+    <TD>
+    <FORM action=""><INPUT type="submit" name="action" value="buy"><INPUT
+        type="hidden" name="symbol" value="<%= quoteData.getSymbol()%>"><INPUT
+        size="4" type="text" name="quantity" value="100"></FORM>
+    </TD>
+</TR>
+
+<%
+    }
+    catch (Exception e)
+    {
+        Log.error("displayQuote.jsp  exception", e);
+    }
+%>



Mime
View raw message