From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../webclient/src/main/webapp/CustomerProfile.jsp | 100 ++++++++++++++ .../src/main/webapp/WEB-INF/bigbank-tags.tld | 127 ++++++++++++++++++ .../webclient/src/main/webapp/WEB-INF/default.scdl | 53 ++++++++ .../webclient/src/main/webapp/WEB-INF/web.xml | 83 ++++++++++++ .../webclient/src/main/webapp/accountLog.jsp | 99 ++++++++++++++ .../src/main/webapp/accountTransaction.jsp | 50 +++++++ .../bigbank/webclient/src/main/webapp/login.html | 60 +++++++++ .../webclient/src/main/webapp/purchaseStock.jsp | 59 +++++++++ .../webclient/src/main/webapp/stockSale.jsp | 56 ++++++++ .../bigbank/webclient/src/main/webapp/summary.jsp | 144 +++++++++++++++++++++ 10 files changed, 831 insertions(+) create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/CustomerProfile.jsp create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/web.xml create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountLog.jsp create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountTransaction.jsp create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/login.html create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/purchaseStock.jsp create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/stockSale.jsp create mode 100644 branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/summary.jsp (limited to 'branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp') diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/CustomerProfile.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/CustomerProfile.jsp new file mode 100644 index 0000000000..2dc17a8867 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/CustomerProfile.jsp @@ -0,0 +1,100 @@ + +<%-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --%> + + + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + +<%-- LINK href="theme/Master.css" rel="stylesheet" type="text/css" --%> +BigBank- Customer Account + +

Customer Account
+
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First name
Last name
Address
email
 
Checkings
Savings
 
Logon ID
Password
+
+   +
+


+

+ + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld new file mode 100644 index 0000000000..a3d92a2e46 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld @@ -0,0 +1,127 @@ + + + + 1.0 + 2.0 + BigBank Tags + Tag library containing BigBank tags + + service + bigbank.webclient.tags.sca.ServiceTag + JSP + Places a reference to an SCA Service in the page context + + id + true + false + + + name + true + false + + + + login + bigbank.webclient.tags.sca.LoginBarrierTag + JSP + Redirects if user is not logged in + + profile + true + false + + + url + true + false + + + + + accountStatus + bigbank.webclient.tags.account.AccountStatusTag + JSP + Accesses and iterates the account service + + id + true + false + + + accountService + true + false + + + profileService + true + false + + + + stockStatus + bigbank.webclient.tags.account.StockStatusTag + JSP + Accesses and iterates the stocks + + id + true + false + + + + + accountLog + bigbank.webclient.tags.account.AccountLogTag + JSP + Accesses and iterates the accounts log + + id + true + false + + + accountService + true + false + + + profileService + true + false + + + + stockLog + bigbank.webclient.tags.account.StockLogTag + JSP + Accesses and iterates the stocks log + + id + true + false + + + + + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl new file mode 100644 index 0000000000..31708af810 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl @@ -0,0 +1,53 @@ + + + + + + + + + + + AccountServiceComponent + ProfileServiceComponent + + + Anonymous + + + + + + + + + AccountService + + + + + + + + + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..a0ebdf18b0 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,83 @@ + + + + + + Tuscany Bigbank Web UI sample + + login.html + + + + TuscanyFilter + org.apache.tuscany.runtime.webapp.TuscanyFilter + + + TuscanyFilter + /* + + + + tuscany.online + true + + + + + org.apache.tuscany.runtime.webapp.TuscanyContextListener + + + + org.apache.tuscany.runtime.webapp.TuscanySessionListener + + + + org.apache.tuscany.runtime.webapp.TuscanyRequestListener + + + + LoginServlet + bigbank.webclient.ui.LoginServlet + 1 + + + FormServlet + bigbank.webclient.ui.FormServlet + 0 + + + + LoginServlet + /loginAction/* + + + FormServlet + /FormServlet/* + + + + + + + + + + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountLog.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountLog.jsp new file mode 100644 index 0000000000..6e91a14dcc --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountLog.jsp @@ -0,0 +1,99 @@ +<%-- + 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="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" %> + + + BigBank Account and Stock Log + + + + Account Log + + + + + + + + + + + + + + + + +
SeqAccountActionAmount
+ + + + + + + +
+ + + +
+ Stock Log + + + + + + + + <%-- spacer --%> + + + + + + + + + <%-- spacer --%> + + + + + + +
SeqSymbolQuantity  ActionPurchaseLotNumber
+ + + + + +    + + + +
+ + + + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountTransaction.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountTransaction.jsp new file mode 100644 index 0000000000..4017834867 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/accountTransaction.jsp @@ -0,0 +1,50 @@ + +<%-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --%> + + + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +BigBank - <%=request.getParameter("account") %> + + +

Account <%= request.getParameter("account") %>
+
+
+

+
+ + + +Amount to <%=request.getParameter("transaction")%>
+
+
+
+      +
+ + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/login.html b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/login.html new file mode 100644 index 0000000000..a1a5440a4f --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/login.html @@ -0,0 +1,60 @@ + + +Welcome to Big Bank + + + +
+ + + + +
Please login in to access your account
+ + + + + + + + + + + +   + +   + +
Login(test)
Password(password)
+
+


+
+
+
New to Big Bank? Please open a new account with us. +
+

+ + +

+ + + + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/purchaseStock.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/purchaseStock.jsp new file mode 100644 index 0000000000..90c3a813b6 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/purchaseStock.jsp @@ -0,0 +1,59 @@ + +<%-- + 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 language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + +BigBank- Stock purchase + +

Stock purchase
+
+

+
+ + + + + + + + + + + + + + + + + + + +
Symbol
Quantity
+
+   +
+


+

+ + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/stockSale.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/stockSale.jsp new file mode 100644 index 0000000000..a2b08f4352 --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/stockSale.jsp @@ -0,0 +1,56 @@ + +<%-- + 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 language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + +BigBank- Stock sale + +

Stock sale
+
+

+
+ + + + + + + + + + + + + + + + +
Quantity
+
+   +
+


+

+ + diff --git a/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/summary.jsp b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/summary.jsp new file mode 100644 index 0000000000..f31ded242f --- /dev/null +++ b/branches/sca-java-M2/samples/applications/bigbank/webclient/src/main/webapp/summary.jsp @@ -0,0 +1,144 @@ +<%-- + 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="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" %> + + + + + BigBank Account Summary + + + + Account Information for +
+ + + +    +
+ + + + + + + + + + + + + + + + + + + + + +
Account Balance
+ + + + + + + + + + +
+ + + +
+
+ Stocks:     
+
+ + + + + + + + <%-- spacer --%> + + + + + + <%-- spacer --%> + + + +
+
+ + + + <%-- spacer --%> + + + + + + + + <%-- spacer --%> + + + + +
SymbolQuantityPurchase Date  Purchase PriceCurrent PriceCompany NameToday HighToday Low   <%-- sell button --%>
+ + + + + +    + + + + + + + + + +    +
+ +
+ +
+
+ Account and Stock Logs:     
+
+ + + + +
-- cgit v1.2.3