From 54e785c9a15bc1286757c147323b697a6c40a640 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 20 Apr 2010 22:27:34 +0000 Subject: Copy 1.x travel sample to branches for start of 1.0 travel sample release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@936092 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/META-INF/sca-deployables/web.composite | 34 +++++++++++++++ .../currency-jsp/src/main/webapp/WEB-INF/web.xml | 42 +++++++++++++++++++ .../src/main/webapp/currency-converter.jsp | 49 ++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/currency-converter.jsp (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src') diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite new file mode 100644 index 0000000000..50667b1ac0 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..3b2c79ca76 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,42 @@ + + + + + + SCA Tours Currency Converter JSP + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + currency-converter.jsp + + + diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/currency-converter.jsp b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/currency-converter.jsp new file mode 100644 index 0000000000..daf8c5cff1 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/currency-jsp/src/main/webapp/currency-converter.jsp @@ -0,0 +1,49 @@ + +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + +

SCA Tours Currency Converter JSP

+Welcome to the SCA Tours Currency Converter: +

+ +

+Enter value in US Dollars + +

+ +

+ +

+ +<% + String dollarsStr = request.getParameter( "dollars" ); + if ( dollarsStr != null) { + double dollars = Double.parseDouble(dollarsStr); + double converted = currencyConverter.convert("USD", "GBP", dollars); + out.println(dollars + " US Dollars = " + converted + " GB Pounds"); + } +%> + + + -- cgit v1.2.3