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 @@ + + + +DayTrader Header + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + 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 @@ + + + + + +DayTrader + + + + + + + <BODY> + <P>Need browser which supports frames to see this page</P> + </BODY> + + + 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 @@ + + + + + +Leftmenu + + + + +
+


+
+Overview

+ +

Benchmarking

+

Configuration

+

Go Trade!

+

Web Primitives

+
+ + + 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 @@ + +<%@ 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(); +%> + + + + + + + + + + + + + + + + + + + + + + +
Market Summary
+ <%= marketSummaryData.getSummaryDate() %>
DayTrader Stock Index (TSIA)<%= marketSummaryData.getTSIA() %> <%= FinancialUtils.printGainPercentHTML(marketSummaryData.getGainPercent()) %>
Trading + Volume<%= marketSummaryData.getVolume() %>
Top Gainers + + + + + + + + <% +Collection topGainers = marketSummaryData.getTopGainers(); +Iterator gainers = topGainers.iterator(); +int count=0; +while (gainers.hasNext() && (count++ < 5)) +{ + QuoteDataBean quoteData = (QuoteDataBean) gainers.next(); +%> + + + + + + <% +} +%> + +
symbolpricechange
<%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %> + <%= quoteData.getPrice() %><%= FinancialUtils.printGainHTML(quoteData.getPrice().subtract(quoteData.getOpen())) /*FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen()))*/ %>
+
Top Losers + + + + + + + + <% +Collection topLosers = marketSummaryData.getTopLosers(); +Iterator losers = topLosers.iterator(); +count=0; +while (losers.hasNext() && (count++ < 5)) + +{ + QuoteDataBean quoteData = (QuoteDataBean) losers.next(); +%> + + + + + + <% +} +%> + +
symbolpricechange
<%= FinancialUtils.printQuoteLink(quoteData.getSymbol()) %> + <%= quoteData.getPrice() %><%= FinancialUtils.printGainHTML(quoteData.getPrice().subtract(quoteData.getOpen())) /* FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(quoteData.getPrice(), quoteData.getOpen())) */%>
+
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 @@ + + + + + +Trade Order information + + + +<%@ 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"%> + + + + + + + + + + + + + + + + + + + +<% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader New OrdersDayTrader
Home Account Portfolio Quotes/TradeLogoff
+
+ <%= new java.util.Date() %>
Alert: The following Order(s) have completed.
+ + +<% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol()) %><%= closedOrderData.getQuantity()%>
+
+ + + + + + +
+ + + + + + <% + OrderDataBean orderData = (OrderDataBean)request.getAttribute("orderData"); + if ( orderData != null ) + { + %> + + + + + + + + + +<% + } + %> + +
New Order

+ Order <%=orderData.getOrderID()%>
to <%=orderData.getOrderType()%> <%=orderData.getQuantity()%> shares of <%=orderData.getSymbol()%> has been submitted for processing.

+
+ Order <%=orderData.getOrderID()%> details:
+ + + + + + + + + + + + + + + + + + + + + + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= orderData.getOrderID()%><%= orderData.getOrderStatus()%><%= orderData.getOpenDate()%><%= orderData.getCompletionDate()%><%= orderData.getOrderFee()%><%= orderData.getOrderType()%><%= FinancialUtils.printQuoteLink(orderData.getSymbol()) %><%= orderData.getQuantity()%>
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + +
Note: Click any symbol for a quote or to trade.
+
DayTrader New OrdersDayTrader
+ + 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 @@ + + + + + +Trade Order information + + + +<%@ 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"%> + + + + + + + + + + + + + + + + + + + +<% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader New Orders +

+ <%= new java.util.Date() %>
Alert: The following Order(s) have completed.
+ + +<% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol()) %><%= closedOrderData.getQuantity()%>
+
+ + + + + + +
+ + + + + + <% + OrderDataBean orderData = (OrderDataBean)request.getAttribute("orderData"); + if ( orderData != null ) + { + %> + + + + + + + + + +<% + } + %> + +
New Order

+ Order <%=orderData.getOrderID()%>
to <%=orderData.getOrderType()%> <%=orderData.getQuantity()%> shares of <%=orderData.getSymbol()%> has been submitted for processing.

+
+ Order <%=orderData.getOrderID()%> details:
+ + + + + + + + + + + + + + + + + + + + + + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= orderData.getOrderID()%><%= orderData.getOrderStatus()%><%= orderData.getOpenDate()%><%= orderData.getCompletionDate()%><%= orderData.getOrderFee()%><%= orderData.getOrderType()%><%= FinancialUtils.printQuoteLink(orderData.getSymbol()) %><%= orderData.getQuantity()%>
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + +
Note: Click any symbol for a quote or to trade.
+
DayTrader New Orders +
+ + 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 @@ + + + + + +Trade Portfolio + + + +<%@ 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"%> + + + + + + + + + + + + + + + + + + + + +<% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader PortfolioDayTrader
Home Account Portfolio Quotes/TradeLogoff
+
+ <%= new java.util.Date() %>
Alert: The following Order(s) have completed.
+ + +<% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%><%= closedOrderData.getQuantity()%>
+
+ + + + + + +
+ + + + + + + + + + + + + + +
Portfolio Number of Holdings: <%= holdingDataBeans.size() +%>
+
+ + + + + + + + + + + + + + + + <% // 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)); + + %> + + + + + + + + + + + + + <% + } +} +catch (Exception e) +{ + Log.error("portfolio.jsp: error displaying user holdings", e); +} + %> + + + + + + + + + + + + +
Portfolio
holding IDpurchase datesymbolquantitypurchase pricecurrent pricepurchase basismarket valuegain/(loss)trade
<%= holdingData.getHoldingID() %><%= holdingData.getPurchaseDate() %><%= FinancialUtils.printQuoteLink(holdingData.getQuoteID()) %><%= holdingData.getQuantity() %><%= holdingData.getPurchasePrice() %><%= quoteData.getPrice() %><%= basis %><%= marketValue %><%= FinancialUtils.printGainHTML(gain) %><%= "sell"%>
Total$ <%= totalBasis %>$ <%= totalValue %>$ <%= FinancialUtils.printGainHTML(totalGain) %> <%= FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(totalValue, totalBasis)) %>
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + +
Note: Click any symbol for a quote or to trade.
+
DayTrader PortfolioDayTrader
+ + 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 @@ + + + + + +Trade Portfolio + + + +<%@ 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"%> + + + + + + + + + + + + + + + + + + + + + <% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader PortfolioDayTrader

+ <%= new java.util.Date() %>
Alert: + The following Order(s) have completed.
+ + + <% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%><%= closedOrderData.getQuantity()%>
+
+ + + + + + +
+ + + + + + + + + + + + + + +
Portfolio Number of Holdings: <%= holdingDataBeans.size() +%>
+
+ + + + + + + + + + + + + + + + <% // 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)); + + %> + + + + + + + + + + + + + <% + } +} +catch (Exception e) +{ + Log.error("portfolio.jsp: error displaying user holdings", e); +} + %> + + + + + + + + + + + + +
Portfolio
holding IDpurchase datesymbolquantitypurchase pricecurrent pricepurchase basismarket valuegain/(loss)trade
<%= holdingData.getHoldingID() %><%= holdingData.getPurchaseDate() %><%= FinancialUtils.printQuoteLink(holdingData.getQuoteID()) %><%= holdingData.getQuantity() %><%= holdingData.getPurchasePrice() %><%= quoteData.getPrice() %><%= basis %><%= marketValue %><%= FinancialUtils.printGainHTML(gain) %><%= "sell"%>
Total$<%= totalBasis %>$<%= totalValue %>$<%= FinancialUtils.printGainHTML(totalGain) %> + <%= FinancialUtils.printGainPercentHTML(FinancialUtils.computeGainPercent(totalValue, totalBasis)) %>
+
+
+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + +
Note: Click any symbol for a + quote or to trade. +
+
+
+
DayTrader PortfolioDayTrader
+ + 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