geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r983523 [6/9] - in /geronimo/samples/trunk/samples/daytrader/assemblies: ./ webprofile/ webprofile/daytrader-webprofile-ear/ webprofile/daytrader-webprofile-ear/src/ webprofile/daytrader-webprofile-ear/src/main/ webprofile/daytrader-webprof...
Date Mon, 09 Aug 2010 04:56:01 GMT
Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html Mon Aug  9 04:55:58 2010
@@ -0,0 +1,96 @@
+<!--
+ 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.
+-->
+<html>
+<head>
+<title>DayTrader Header</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+</head>
+<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
+<!-- ImageReady Slices (daytrader2_matts_mods.psd - Slices: 00, about, bottomRedBar, configuration, copyRight, dayTraderLogo.gif, daytrader2_matts_mods_14, faq, home, primitives, reports, topRedBar, tradingAndPortfolios) -->
+<table id="Table_01" width="785" height="90" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td width="1" height="1" rowspan="3">
+			<img src="images/spacer.gif" width="1" height="1" alt=""></td>
+		<td>
+			<table id="header" width="784" height="89" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td colspan="4">
+						<img src="images/dayTraderLogo.gif" width="319" height="53" alt=""></td>
+					<td width="465" height="53" colspan="6">
+						<img src="images/spacer.gif" width="465" height="53" alt=""></td>
+				</tr>
+				<tr>
+					<td>
+						<a href="contentHome.html" target="TradeMainContent"
+							onmouseover="window.status='Choose to see the DayTrader Architecture';  return true;"
+							onmouseout="window.status='';  return true;">
+							<img src="images/home.gif" width="92" height="29" border="0" alt=""></a></td>
+					<td width="1" height="29">
+						<img src="images/spacer.gif" width="1" height="29" alt=""></td>
+					<td>
+						<a href="app" target="TradeMainContent"
+							onmouseover="window.status='Select this tab to log on and trade portfolios.  Users are u:n and passwords are xxx';  return true;"
+							onmouseout="window.status='';  return true;">
+							<img src="images/tradingAndPortfolios.gif" width="140" height="29" border="0" alt=""></a></td>
+					<td colspan="2">
+						<a href="configure.html" target="TradeMainContent"
+							onmouseover="window.status='Allows for runtime configuration of DayTrader';  return true;"
+							onmouseout="window.status='';  return true;">
+							<img src="images/configuration.gif" width="91" height="29" border="0" alt=""></a></td>
+					<td>
+						<a href="web_prmtv.html" target="TradeMainContent"
+							onmouseover="window.status='Primitives used to test various J2EE and Server Features';  return true;"
+							onmouseout="window.status='';  return true;">
+							<img src="images/primitives.gif" width="78" height="29" border="0" alt=""></a></td>
+					<td>
+						<a href="docs/tradeFAQ.html" target="TradeMainContent">
+							<img src="images/faq.gif" width="86" height="29" border="0" alt=""></a></td>
+					<td width="96" height="29">
+						<img src="images/spacer.gif" width="96" height="29" alt=""></td>
+				</tr>
+				<tr>
+					<td colspan="10">
+						<img src="images/topRedBar.gif" width="784" height="6" alt=""></td>
+				</tr>
+				<tr>
+					<td>
+						<img src="images/spacer.gif" width="92" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="1" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="140" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="86" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="5" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="77" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="78" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="86" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="123" height="1" alt=""></td>
+					<td>
+						<img src="images/spacer.gif" width="96" height="1" alt=""></td>
+				</tr>
+			</table></td>
+	</tr>
+</table>
+<!-- End ImageReady Slices -->
+</body>
+</html>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/header.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_blue.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_blue.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_blue.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_red.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_red.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/DayTraderHead_red.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/SOAPconfig.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/SOAPconfig.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/SOAPconfig.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/about.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/about.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/about.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/account.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/account.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/account.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowdown.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowdown.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowdown.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowup.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowup.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/arrowup.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/bottomRedBar.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/bottomRedBar.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/bottomRedBar.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/configuration.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/configuration.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/configuration.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/copyRight.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/copyRight.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/copyRight.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/dayTraderLogo.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/dayTraderLogo.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/dayTraderLogo.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/faq.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/faq.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/faq.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/graph.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/graph.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/graph.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/home.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/home.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/home.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/homeBanner.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/homeBanner.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/homeBanner.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/line.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/line.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/line.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/logout.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/logout.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/logout.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/lower_banner.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/lower_banner.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/lower_banner.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/menuHome.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/menuHome.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/menuHome.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/portfolio.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/portfolio.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/portfolio.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/primitives.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/primitives.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/primitives.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/quotes.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/quotes.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/quotes.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/reports.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/reports.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/reports.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/spacer.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/spacer.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/spacer.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/ticker-anim.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/ticker-anim.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/ticker-anim.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topRedBar.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topRedBar.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topRedBar.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topline.jpg
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topline.jpg?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/topline.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradeOverview.png
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradeOverview.png?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradeOverview.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradingAndPortfolios.gif
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradingAndPortfolios.gif?rev=983523&view=auto
==============================================================================
Binary file - no diff available.

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/images/tradingAndPortfolios.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html Mon Aug  9 04:55:58 2010
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//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.
+-->
+<HTML>
+<HEAD>
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>DayTrader</TITLE>
+</HEAD>
+<FRAMESET rows="90,*,58" cols="785" frameborder="0" framespacing="0" border="0">
+	<FRAME src="./header.html" scrolling="NO" name="TradeFrameTop" noresize>
+	<FRAME src="./contentHome.html" scrolling="AUTO" name="TradeMainContent" noresize>
+	<FRAME src="./footer.html" name="TradeFrameBottom" scrolling="NO" noresize>
+	<NOFRAMES>
+	<BODY>
+	<P>Need browser which supports frames to see this page</P>
+	</BODY>
+	</NOFRAMES>
+</FRAMESET>
+</HTML>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html Mon Aug  9 04:55:58 2010
@@ -0,0 +1,43 @@
+<!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.
+-->
+<HTML>
+<HEAD>
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>Leftmenu</TITLE>
+<BASE target="_self">
+<LINK rel="stylesheet" href="style.css" type="text/css" />
+</HEAD>
+<BODY bgcolor="#f3f3f3" link="#000080" vlink="#000080">
+<HR width="130" size="1" align="center">
+<P align="center"><FONT size="-1"><A href="contentHome.html" target="TradeFrameMain"><FONT size="2"><BR>
+<BR>
+Overview</FONT></A></FONT></P>
+<!-- <P align="center"><FONT size="-1"><A href="docs/documentation.html" target="TradeFrameMain"><FONT size="2">Technical <BR> 
+Documentation</FONT></A></FONT></P> -->
+<P align="center"><FONT size="-1"><A href="docs/benchmarking.html" target="TradeFrameMain"><FONT size="2">Benchmarking</FONT></A></FONT></P>
+<P align="center"><FONT size="2"><A href="configure.html" target="TradeFrameMain">Configuration</A></FONT></P>
+<P align="center"><FONT size="-1"><A href="app" target="TradeFrameMain"><FONT size="2">Go Trade!</FONT></A></FONT></P>
+<P align="center"><FONT size="-1"><A href="web_prmtv.html" target="TradeFrameMain">Web Primitives</A></FONT></P>
+<HR width="130" size="1" align="center">
+<!-- <P align="center"><I><IMG src="images/DayTraderHead_red.gif" border="0" width="112" height="36"><BR>
+<BR>
+</I><B><IMG src="images/GLogo_450x50.gif" width="150" height="21" border="0"><BR>
+</B></P> 
+<HR width="130" size="1" align="center"> -->
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/leftMenu.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp Mon Aug  9 04:55:58 2010
@@ -0,0 +1,116 @@
+<!--
+ 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.util.Collection, java.util.Iterator, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*, org.apache.geronimo.samples.daytrader.soap.*"
+	session="true" isThreadSafe="true" isErrorPage="false"%>
+
+<%
+TradeServices tAction=null;
+if(TradeConfig.getAccessMode() == TradeConfig.STANDARD)
+	tAction = new TradeAction();
+else if(TradeConfig.getAccessMode() == TradeConfig.WEBSERVICES)
+	tAction = new TradeWebSoapProxy();    
+MarketSummaryDataBean marketSummaryData = tAction.getMarketSummary();
+%>
+<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>
+			<%= marketSummaryData.getSummaryDate() %></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"><%= marketSummaryData.getTSIA() %> <%= FinancialUtils.printGainPercentHTML(marketSummaryData.getGainPercent()) %></TD>
+		</TR>
+		<TR>
+			<TD align="right" bgcolor="#fafcb6"><A href="docs/glossary.html">Trading
+			Volume</A></TD>
+			<TD align="center" valign="middle"><%= marketSummaryData.getVolume() %></TD>
+		</TR>
+		<TR>
+			<TD align="right" bgcolor="#fafcb6" width="74"><A
+				href="docs/glossary.html">Top Gainers</A></TD>
+			<TD bgcolor="#ffffff">
+			<TABLE width="100%" border="1" height="100%"
+				style="font-size: smaller">
+				<TBODY>
+					<TR align="center">
+						<TD><A href="docs/glossary.html">symbol</A></TD>
+						<TD><A href="docs/glossary.html">price</A></TD>
+						<TD><A href="docs/glossary.html">change</A></TD>
+					</TR>
+					<%                              
+Collection topGainers = marketSummaryData.getTopGainers();
+Iterator gainers = topGainers.iterator();
+int count=0;
+while (gainers.hasNext() && (count++ < 5))
+{
+	QuoteDataBean quoteData = (QuoteDataBean) gainers.next();
+%>
+					<TR align="center">
+						<TD width="24"><%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %>
+						</TD>
+						<TD><%= quoteData.getPrice() %></TD>
+						<TD width="52" nowrap><%= FinancialUtils.printGainHTML(quoteData.getPrice().subtract(quoteData.getOpen())) /*FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen()))*/ %></TD>
+					</TR>
+					<%
+}
+%>
+				</TBODY>
+			</TABLE>
+			</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">
+			<TABLE width="100%" border="1" height="100%"
+				style="font-size: smaller">
+				<TBODY>
+					<TR align="center">
+						<TD><A href="docs/glossary.html">symbol</A></TD>
+						<TD><A href="docs/glossary.html">price</A></TD>
+						<TD><A href="docs/glossary.html">change</A></TD>
+					</TR>
+					<%
+Collection topLosers = marketSummaryData.getTopLosers();
+Iterator losers  = topLosers.iterator();
+count=0;
+while (losers.hasNext() && (count++ < 5))
+
+{
+	QuoteDataBean quoteData = (QuoteDataBean) losers.next();
+%>
+					<TR align="center">
+						<TD width="24" nowrap><%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %>
+						</TD>
+						<TD><%= quoteData.getPrice() %></TD>
+						<TD width="52" nowrap><%= FinancialUtils.printGainHTML(quoteData.getPrice().subtract(quoteData.getOpen())) /* FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen())) */%></TD>
+					</TR>
+					<%
+}
+%>
+				</TBODY>
+			</TABLE>
+			</TD>
+		</TR>
+	</TBODY>
+</TABLE>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/marketSummary.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp Mon Aug  9 04:55:58 2010
@@ -0,0 +1,188 @@
+<!--
+ 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 Order information</TITLE>
+
+</HEAD>
+<BODY bgcolor="#ffffff" link="#000099" vlink="#000099">
+<%@ page import="java.util.Collection, java.util.Iterator, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*" session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+
+<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><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&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>
+<%
+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="650">
+    <TBODY>
+        <TR>
+            <TD>
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD></TD>
+                    </TR>
+                    <% 
+ OrderDataBean orderData = (OrderDataBean)request.getAttribute("orderData");
+ if ( orderData != null )
+ {
+                    %>
+                    <TR>
+                        <TD align="left" bgcolor="#cccccc"><B>New Order</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="left"><FONT color="#cc0000"><B><BR>
+                        Order <%=orderData.getOrderID()%></B> to <B><%=orderData.getOrderType()%> <%=orderData.getQuantity()%></B> shares of <B><%=orderData.getSymbol()%></B> has been submitted for processing. </FONT><BR>
+                        <BR>
+                        <FONT color="#000000">Order <FONT color="#000000"><B><%=orderData.getOrderID()%></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><%= 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>
+                                </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"><FORM><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 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>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/order.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp Mon Aug  9 04:55:58 2010
@@ -0,0 +1,187 @@
+<!--
+ 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 Order information</TITLE>
+
+</HEAD>
+<BODY bgcolor="#ffffff" link="#000099" vlink="#000099">
+<%@ page import="java.util.Collection, java.util.Iterator, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*" session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+
+<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="#ffffff" width="100" height="10">
+			    <IMG src="images/spacer.gif" width="45" height="19" border="0"></TD>
+		</TR>
+        <TR align="left">
+            <TD><A href="app?action=home"><IMG src="images/home.gif" width="80" height="20" border="0"></A></TD>
+            <TD><A href="app?action=account"><IMG src="images/account.gif" width="80" height="20" border="0"></A></TD>
+            <TD><B><A href="app?action=portfolio"><IMG src="images/portfolio.gif" width="80" height="20" border="0"></A> </B></TD>
+            <TD><A href="app?action=quotes&symbols=s:0,s:1,s:2,s:3,s:4"><IMG src="images/quotes.gif" width="80" height="20" border="0"></A></TD>
+            <TD><A href="app?action=logout"><IMG src="images/logout.gif" width="80" height="20" border="0"></A></TD>
+            <TD><IMG src="images/graph.gif" width="32" height="32" border="0"></TD>
+        </TR>
+        <TR>
+			<TD align="left" colspan="6"><IMG src="images/line.gif" width="600" height="6" border="0"><FONT color="#ff0000" size="-2"><BR>
+			<%= new java.util.Date() %></FONT></TD>
+		</TR>
+<%
+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="650">
+    <TBODY>
+        <TR>
+            <TD>
+            <TABLE width="100%">
+                <TBODY>
+                    <TR>
+                        <TD></TD>
+                    </TR>
+                    <% 
+ OrderDataBean orderData = (OrderDataBean)request.getAttribute("orderData");
+ if ( orderData != null )
+ {
+                    %>
+                    <TR>
+                        <TD align="left" bgcolor="#cccccc"><B>New Order</B></TD>
+                    </TR>
+                    <TR>
+                        <TD align="left"><FONT color="#cc0000"><B><BR>
+                        Order <%=orderData.getOrderID()%></B> to <B><%=orderData.getOrderType()%> <%=orderData.getQuantity()%></B> shares of <B><%=orderData.getSymbol()%></B> has been submitted for processing. </FONT><BR>
+                        <BR>
+                        <FONT color="#000000">Order <FONT color="#000000"><B><%=orderData.getOrderID()%></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><%= 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>
+                                </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"><FORM><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 New Orders</FONT></B></TD>
+			<TD align="center" bgcolor="#ffffff" width="100" height="10">
+			    <IMG src="images/spacer.gif" width="45" height="19" border="0"></TD>
+		</TR>
+    </TBODY>
+</TABLE>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/orderImg.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp Mon Aug  9 04:55:58 2010
@@ -0,0 +1,238 @@
+<!--
+ 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 Portfolio</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.util.HashMap, java.math.BigDecimal, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*" session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+<jsp:useBean id="holdingDataBeans" type="java.util.Collection" scope="request" />
+<jsp:useBean id="quoteDataBeans" 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 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><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&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>
+<%
+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="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><%= holdingDataBeans.size()
+%></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">
+                                    <TD><A href="docs/glossary.html">holding ID</A></TD>
+                                    <TD><A href="docs/glossary.html">purchase date</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">purchase price</A></TD>
+                                    <TD><A href="docs/glossary.html">current price</A></TD>
+                                    <TD><A href="docs/glossary.html">purchase basis</A></TD>                                    
+                                    <TD><A href="docs/glossary.html">market value</A></TD>
+                                    <TD><A href="docs/glossary.html">gain/(loss)</A></TD>
+                                    <TD><B><A href="docs/glossary.html">trade</A></B></TD>
+                                </TR>
+                                <% // Create Hashmap for quick lookup of quote values
+Iterator it = quoteDataBeans.iterator();
+HashMap quoteMap = new HashMap();                                
+while ( it.hasNext() ) 
+{
+	QuoteDataBean quoteData = (QuoteDataBean) it.next();
+	quoteMap.put(quoteData.getSymbol(), quoteData);
+}
+//Step through and printout Holdings
+
+it = holdingDataBeans.iterator();
+BigDecimal totalGain = new BigDecimal(0.0);
+BigDecimal totalBasis = new BigDecimal(0.0);
+BigDecimal totalValue = new BigDecimal(0.0);
+try {
+	while (it.hasNext()) {
+		HoldingDataBean holdingData = (HoldingDataBean) it.next();
+		QuoteDataBean quoteData = (QuoteDataBean) quoteMap.get(holdingData.getQuoteID());
+		BigDecimal basis = holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()));
+		BigDecimal marketValue = quoteData.getPrice().multiply(new BigDecimal(holdingData.getQuantity()));
+		totalBasis = totalBasis.add(basis);	
+		totalValue = totalValue.add(marketValue);	
+		BigDecimal gain = marketValue.subtract(basis);
+		totalGain = totalGain.add(gain);
+		BigDecimal gainPercent = null;
+		if (basis.doubleValue() == 0.0)
+		{
+			gainPercent = new BigDecimal(0.0);
+			Log.error("portfolio.jsp: Holding with zero basis. holdingID="+holdingData.getHoldingID() + " symbol=" + holdingData.getQuoteID() + " purchasePrice=" + holdingData.getPurchasePrice());
+		}
+		else
+			gainPercent = marketValue.divide(basis, BigDecimal.ROUND_HALF_UP).subtract(new BigDecimal(1.0)).multiply(new BigDecimal(100.0));                        	
+	
+                         %>
+                                <TR bgcolor="#fafcb6" align="center">
+                                    <TD><%= holdingData.getHoldingID() %></TD>
+                                    <TD><%= holdingData.getPurchaseDate() %></TD>
+                                    <TD><%= FinancialUtils.printQuoteLink(holdingData.getQuoteID()) %></TD>
+                                    <TD><%= holdingData.getQuantity() %></TD>
+                                    <TD><%= holdingData.getPurchasePrice() %></TD>
+                                    <TD><%= quoteData.getPrice() %></TD>
+                                    <TD><%= basis %></TD>
+                                    <TD><%= marketValue %></TD>
+                                    <TD><%= FinancialUtils.printGainHTML(gain) %></TD>
+                                    <TD><B><%= "<A href=\"app?action=sell&holdingID=" + holdingData.getHoldingID()+"\">sell</A>"%></B></TD>
+                                </TR>
+                                <% 
+	}
+}
+catch (Exception e)
+{
+     Log.error("portfolio.jsp: error displaying user holdings", e);
+}
+				%>
+                                <TR align="center">
+                                    <TD></TD>
+                                    <TD></TD>
+                                    <TD></TD>
+                                    <TD></TD>
+                                    <TD></TD>
+                                    <TD><B>Total</B></TD>
+                                    <TD align="center">$ <%= totalBasis %></TD>
+                                    <TD align="center">$ <%= totalValue %></TD>
+                                    <TD align="center" colspan="2">$ <%= FinancialUtils.printGainHTML(totalGain) %> <%= FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(totalValue, totalBasis)) %></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"><FORM><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 Portfolio</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>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolio.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp?rev=983523&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp (added)
+++ geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp Mon Aug  9 04:55:58 2010
@@ -0,0 +1,255 @@
+<!--
+ 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 Portfolio</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.util.HashMap, java.math.BigDecimal, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*"
+	session="true" isThreadSafe="true" isErrorPage="false"%>
+<jsp:useBean id="results" scope="request" type="java.lang.String" />
+<jsp:useBean id="holdingDataBeans" type="java.util.Collection"
+	scope="request" />
+<jsp:useBean id="quoteDataBeans" 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 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><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=""><BR>
+			<FONT color="#ff0000" size="-2"><%= new java.util.Date() %></FONT></TD>
+		</TR>
+		<%
+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="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><%= holdingDataBeans.size()
+%></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">
+									<TD><A href="docs/glossary.html">holding ID</A></TD>
+									<TD><A href="docs/glossary.html">purchase date</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">purchase price</A></TD>
+									<TD><A href="docs/glossary.html">current price</A></TD>
+									<TD><A href="docs/glossary.html">purchase basis</A></TD>
+									<TD><A href="docs/glossary.html">market value</A></TD>
+									<TD><A href="docs/glossary.html">gain/(loss)</A></TD>
+									<TD><B><A href="docs/glossary.html">trade</A></B></TD>
+								</TR>
+								<% // Create Hashmap for quick lookup of quote values
+Iterator it = quoteDataBeans.iterator();
+HashMap quoteMap = new HashMap();                                
+while ( it.hasNext() ) 
+{
+	QuoteDataBean quoteData = (QuoteDataBean) it.next();
+	quoteMap.put(quoteData.getSymbol(), quoteData);
+}
+//Step through and printout Holdings
+
+it = holdingDataBeans.iterator();
+BigDecimal totalGain = new BigDecimal(0.0);
+BigDecimal totalBasis = new BigDecimal(0.0);
+BigDecimal totalValue = new BigDecimal(0.0);
+try {
+	while (it.hasNext()) {
+		HoldingDataBean holdingData = (HoldingDataBean) it.next();
+		QuoteDataBean quoteData = (QuoteDataBean) quoteMap.get(holdingData.getQuoteID());
+		BigDecimal basis = holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()));
+		BigDecimal marketValue = quoteData.getPrice().multiply(new BigDecimal(holdingData.getQuantity()));
+		totalBasis = totalBasis.add(basis);	
+		totalValue = totalValue.add(marketValue);	
+		BigDecimal gain = marketValue.subtract(basis);
+		totalGain = totalGain.add(gain);
+		BigDecimal gainPercent = null;
+		if (basis.doubleValue() == 0.0)
+		{
+			gainPercent = new BigDecimal(0.0);
+			Log.error("portfolio.jsp: Holding with zero basis. holdingID="+holdingData.getHoldingID() + " symbol=" + holdingData.getQuoteID() + " purchasePrice=" + holdingData.getPurchasePrice());
+		}
+		else
+			gainPercent = marketValue.divide(basis, BigDecimal.ROUND_HALF_UP).subtract(new BigDecimal(1.0)).multiply(new BigDecimal(100.0));                        	
+	
+                         %>
+								<TR bgcolor="#fafcb6" align="center">
+									<TD><%= holdingData.getHoldingID() %></TD>
+									<TD><%= holdingData.getPurchaseDate() %></TD>
+									<TD><%= FinancialUtils.printQuoteLink(holdingData.getQuoteID()) %></TD>
+									<TD><%= holdingData.getQuantity() %></TD>
+									<TD><%= holdingData.getPurchasePrice() %></TD>
+									<TD><%= quoteData.getPrice() %></TD>
+									<TD><%= basis %></TD>
+									<TD><%= marketValue %></TD>
+									<TD><%= FinancialUtils.printGainHTML(gain) %></TD>
+									<TD><B><%= "<A href=\"app?action=sell&holdingID=" + holdingData.getHoldingID()+"\">sell</A>"%></B></TD>
+								</TR>
+								<% 
+	}
+}
+catch (Exception e)
+{
+     Log.error("portfolio.jsp: error displaying user holdings", e);
+}
+				%>
+								<TR align="center">
+									<TD></TD>
+									<TD></TD>
+									<TD></TD>
+									<TD></TD>
+									<TD></TD>
+									<TD><B>Total</B></TD>
+									<TD align="center">$<%= totalBasis %></TD>
+									<TD align="center">$<%= totalValue %></TD>
+									<TD align="center" colspan="2">$<%= FinancialUtils.printGainHTML(totalGain) %>
+									<%= FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(totalValue, totalBasis)) %></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">
+						<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" 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>
+	</TBODY>
+</TABLE>
+</BODY>
+</HTML>

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/daytrader/assemblies/webprofile/daytrader-webprofile-war/src/main/webapp/portfolioImg.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message