diff options
Diffstat (limited to 'branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp')
9 files changed, 0 insertions, 700 deletions
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/CustomerProfile.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/CustomerProfile.jsp deleted file mode 100644 index 6fc0484056..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/CustomerProfile.jsp +++ /dev/null @@ -1,97 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<%-- LINK href="theme/Master.css" rel="stylesheet" type="text/css" --%>
-<TITLE>BigBank- Customer Account</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Customer Account</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='createAccount' />
-<TABLE border="0">
- <TBODY>
- <TR>
- <TD>First name </TD>
- <TD width="10%"></TD>
- <TD><INPUT type="text" name="firstName" size="20"></TD>
- </TR>
- <TR>
- <TD>Last name</TD>
- <TD></TD>
- <TD><INPUT type="text" name="lastName" size="20"></TD>
- </TR>
- <TR>
- <TD>Address</TD>
- <TD></TD>
- <TD><INPUT type="text" name="address" size="36" maxlength="170"></TD>
- </TR>
- <TR>
- <TD>email</TD>
- <TD></TD>
- <TD><INPUT type="text" name="email" size="16" maxlength="39"></TD>
- </TR>
- <TR>
- <TD> </TD>
- <TD></TD>
- <TD></TD>
- </TR>
- <TR>
- <TD>Checkings</TD>
- <TD></TD>
- <TD><INPUT type="checkbox" name="checkings" value="checkings" checked></TD>
- </TR>
- <TR>
- <TD>Savings</TD>
- <TD></TD>
- <TD><INPUT type="checkbox" name="savings" value="savings" checked></TD>
- </TR>
- <TR>
- <TD> </TD>
- <TD></TD>
- <TD></TD>
- </TR>
- <TR>
- <TD>Logon ID</TD>
- <TD></TD>
- <TD><INPUT type="text" name="loginID" size="20"></TD>
- </TR>
- <TR>
- <TD>Password</TD>
- <TD></TD>
- <TD><INPUT type="password" name="password" size="20"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="update" value="update">
-<INPUT type="button" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld deleted file mode 100644 index b04a5568b5..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld +++ /dev/null @@ -1,124 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
- <tlibversion>1.0</tlibversion>
- <jspversion>2.0</jspversion>
- <shortname>BigBank Tags</shortname>
- <info>Tag library containing BigBank tags</info>
- <tag>
- <name>service</name>
- <tagclass>bigbank.webclient.tags.sca.ServiceTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Places a reference to an SCA Service in the page context</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>login</name>
- <tagclass>bigbank.webclient.tags.sca.LoginBarrierTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Redirects if user is not logged in</info>
- <attribute>
- <name>profile</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>url</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
-
- </tag>
- <tag>
- <name>accountStatus</name>
- <tagclass>bigbank.webclient.tags.account.AccountStatusTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the account service</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>accountService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>profileService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>stockStatus</name>
- <tagclass>bigbank.webclient.tags.account.StockStatusTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the stocks</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <name>accountLog</name>
- <tagclass>bigbank.webclient.tags.account.AccountLogTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the accounts log</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>accountService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>profileService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>stockLog</name>
- <tagclass>bigbank.webclient.tags.account.StockLogTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the stocks log</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
-
-</taglib>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/web.xml b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 3b4c735a62..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. - - Licensed 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. - --> -<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> - - <display-name>Tuscany Bigbank Web UI sample</display-name> - <welcome-file-list id="WelcomeFileList"> - <welcome-file>login.html</welcome-file> - </welcome-file-list> - - <servlet> - <servlet-name>LoginServlet</servlet-name> - <servlet-class>bigbank.webclient.ui.LoginServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> - <servlet> - <servlet-name>FormServlet</servlet-name> - <servlet-class>bigbank.webclient.ui.FormServlet</servlet-class> - <load-on-startup>0</load-on-startup> - </servlet> - - <servlet-mapping> - <servlet-name>LoginServlet</servlet-name> - <url-pattern>/loginAction/*</url-pattern> - </servlet-mapping> - <servlet-mapping> - <servlet-name>FormServlet</servlet-name> - <url-pattern>/FormServlet/*</url-pattern> - </servlet-mapping> - -</web-app> diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountLog.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountLog.jsp deleted file mode 100644 index d4be6fb9ed..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountLog.jsp +++ /dev/null @@ -1,96 +0,0 @@ -<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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="com.bigbank.account.AccountLogEntry" %>
- <%@ page import="com.bigbank.account.StockLogEntry" %>
- <%@ page session="true" %>
- <%@ page autoFlush="true" %>
- <%@ taglib uri="/WEB-INF/bigbank-tags.tld" prefix="sca" %>
-
- <html>
- <title>BigBank Account and Stock Log</title>
-
- <body>
-
- Account Log
-
- <table>
- <tr>
- <td><strong>Seq</strong></td>
- <td><strong>Account</strong></td>
- <td><strong>Action</strong></td>
- <td><strong>Amount</strong></td>
- </tr>
- <sca:accountLog accountService="AccountServiceComponent" profileService="ProfileServiceComponent" id="accountlogentry">
- <tr>
- <td>
- <jsp:getProperty name="accountlogentry" property="logSeqNo"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="accountNumber"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="actionType"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="amount"/>
- </td>
- </tr>
- </sca:accountLog>
- </table>
-
-
-
- <hr/>
- Stock Log
-
- <table>
-
- <tr>
- <td><strong>Seq</strong></td>
- <td><strong>Symbol</strong></td>
- <td><strong>Quantity</strong></td>
- <td> </td> <%-- spacer --%>
- <td><strong>Action</strong></td>
- <td><strong>PurchaseLotNumber</strong></td>
- </tr>
- <sca:stockLog id="stocklogentry">
- <tr>
- <td>
- <jsp:getProperty name="stocklogentry" property="logSeqNo"/>
- </td>
- <td>
- <jsp:getProperty name="stocklogentry" property="symbol"/>
- </td>
- <td>
- <jsp:getProperty name="stocklogentry" property="quantity"/>
- </td>
- <td> </td> <%-- spacer --%>
- <td>
- <jsp:getProperty name="stocklogentry" property="actionType"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocklogentry" property="purchaseLotNumber"/>
- </td>
- </tr>
- </FORM>
- </sca:stockLog>
- </table>
-
-
- </body>
- </html>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountTransaction.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountTransaction.jsp deleted file mode 100644 index 4188b70b71..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/accountTransaction.jsp +++ /dev/null @@ -1,47 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META name="GENERATOR" content="IBM Software Development Platform">
-<META http-equiv="Content-Style-Type" content="text/css">
-<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
-<TITLE>BigBank - <%=request.getParameter("account") %> </TITLE>
-</HEAD>
-<BODY>
-<P>Account <%= request.getParameter("account") %><BR>
-<BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='account' />
-<input type="hidden" name="account" value='<%= request.getParameter("account") %>' />
-<input type="hidden" name="actionType" value='<%=request.getParameter("transaction")%>' />
-Amount to <%=request.getParameter("transaction")%> <INPUT type="text" name="Amount" size="10"
- maxlength="10"><BR>
-<BR>
-<BR>
-<BR>
-<INPUT type="submit" name="Submit"
- value="Submit"> <INPUT type="submit"
- name="cancel" value="cancel">
-</FORM>
-</BODY>
-</HTML>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/login.html b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/login.html deleted file mode 100644 index 83f8fd3d2c..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/login.html +++ /dev/null @@ -1,42 +0,0 @@ -<html> -<title>Welcome to Big Bank</title> - -<body> - -<form action="loginAction" method="post"> - <table> - <tr> - <td colspan="2">Please login in to access your account</td> - </tr> - </table> - <table> - <tr> - <td>Login</td> - <td><input type="text" name="login"/></td> - <td><I><FONT - size="-1" color="red">(test)</FONT></I></td> - </tr> - <tr> - <td>Password</td> - <td><input type="password" name="password"/></td> - <td><I><FONT size="-1" color="red">(password)</FONT></I></td> - </tr> - <tr> <td></td> - <td align="right"><input type="submit" name='login' value="login"/></td> - <tr> <td></td> - </tr> - </table> -</form> -<P><BR></P> -<HR/> -<FORM action="CustomerProfile.jsp" method="get"> -<BR>New to Big Bank? Please open a new account with us. -<BR/> -<P> -<INPUT type="submit" name="createAccount" value="Create a new account"> - -</FORM> - - -</body> -</html> diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/purchaseStock.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/purchaseStock.jsp deleted file mode 100644 index b0838a9a81..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/purchaseStock.jsp +++ /dev/null @@ -1,56 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<TITLE>BigBank- Stock purchase</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Stock purchase</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='stockPurchase' />
-<TABLE border="0">
- <TBODY>
- <TR>
- <TD>Symbol </TD>
- <TD width="10%"></TD>
- <TD><INPUT type="text" name="symbol" size="6"></TD>
- </TR>
- <TR>
- <TD>Quantity</TD>
- <TD></TD>
- <TD><INPUT type="text" name="quantity" size="6"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="purchase" value="purchase">
-<INPUT type="submit" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/stockSale.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/stockSale.jsp deleted file mode 100644 index de4c438ffb..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/stockSale.jsp +++ /dev/null @@ -1,53 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<TITLE>BigBank- Stock sale</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Stock sale</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='stockSale' />
-<input type="hidden" name="purchaseLotNumber" value='<%=request.getParameter("purchaseLotNumber")%>' />
-<TABLE border="0">
- <TBODY>
-
- <TR>
- <TD>Quantity</TD>
- <TD></TD>
- <TD><INPUT type="text" name="quantity" size="6"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="stockSale" value="sell">
-<INPUT type="submit" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/summary.jsp b/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/summary.jsp deleted file mode 100644 index 851950786b..0000000000 --- a/branches/java-post-M1/sampleapps/bigbank/webclient/src/main/webapp/summary.jsp +++ /dev/null @@ -1,141 +0,0 @@ -<%--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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="com.bigbank.account.AccountSummary" %>
- <%@ page import="com.bigbank.account.StockSummary" %>
- <%@ page session="true" %>
- <%@ page autoFlush="true" %>
-<%@ taglib uri="/WEB-INF/bigbank-tags.tld" prefix="sca" %>
-<sca:login profile="ProfileServiceComponent" url="login.html">
- <sca:service id="profile" name="ProfileServiceComponent"/>
-
- <html>
- <title>BigBank Account Summary</title>
-
- <body>
-
- Account Information for
- <FORM method="post" action='loginAction'>
- <jsp:getProperty name='profile' property='firstName'/>
- <jsp:getProperty name='profile' property='lastName'/>
- <input type="hidden" name="logoutHIDDEN" value='logoutHIDDEN' />
- <INPUT type="submit" name='logout' value="logout">
- <br>
- </FORM>
-
- <table>
- <tr>
- <td><strong>Account</strong></td>
- <td> </td>
- <td><strong>Balance</strong></td>
- </tr>
- <sca:accountStatus accountService="AccountServiceComponent" profileService="ProfileServiceComponent" id="account">
- <tr>
- <FORM method="post" action='accountTransaction.jsp'>
- <input type="hidden" name="account" value='<%=((AccountSummary)pageContext.getAttribute("account")).getAccountNumber()%>' />
- <td>
- <jsp:getProperty name="account" property="accountNumber"/>
- </td>
-
- <td>
- <jsp:getProperty name="account" property="accountType"/>
- </td>
- <td>
- <jsp:getProperty name="account" property="balance"/>
- </td>
- <td>
-
- <INPUT type="submit" name='transaction' value="deposit">
- </td>
- <td>
- <INPUT type="submit" name='transaction' value="withdraw">
- </td>
- </FORM>
- </tr>
- </sca:accountStatus>
- </table>
-
-
-
- <hr/>
- <FORM method="post" action='purchaseStock.jsp'>
- Stocks: <INPUT type="submit" name='Purchase' value="Purchase"><br/>
- </FORM>
-
- <table>
-
- <tr>
- <td><strong>Symbol</strong></td>
- <td><strong>Quantity</strong></td>
- <td><strong>Purchase Date</strong></td>
- <td> </td> <%-- spacer --%>
- <td><strong>Purchase Price</strong></td>
- <td><strong>Current Price</strong></td>
- <td><strong>Company Name</strong></td>
- <td><strong>Today High</strong></td>
- <td><strong>Today Low</strong></td>
- <td> </td> <%-- spacer --%>
- <td> <%-- sell button --%></td>
- </tr>
- <sca:stockStatus id="stocksummary">
- <FORM method="post" action='stockSale.jsp' >
- <tr>
- <td>
- <jsp:getProperty name="stocksummary" property="symbol"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="quantity"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="purchaseDate"/>
- </td>
- <td> </td> <%-- spacer --%>
- <td>
- <jsp:getProperty name="stocksummary" property="purchasePrice"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocksummary" property="currentPrice"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="company"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocksummary" property="highPrice"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="lowPrice"/>
- </td>
- <td> </td> <%-- spacer --%>
- <td>
- <INPUT type="submit" name='stocksale' value="sell"><br/>
- <input type="hidden" name="purchaseLotNumber" value='<%=((StockSummary)pageContext.getAttribute("stocksummary")).getPurchaseLotNumber()%>' />
- </td>
- </tr>
- </FORM>
- </sca:stockStatus>
- </table>
-
- <hr/>
- <FORM method="post" action='accountLog.jsp'>
- Account and Stock Logs: <INPUT type="submit" name='Logs' value="Logs"><br/>
- </FORM>
-
-
- </body>
- </html>
-</sca:login>
|