From 927bf127eb5530bbda2da17ff99a0dab3d3f3a45 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 15 Sep 2009 13:01:26 +0000 Subject: Apply new naming convention to currency converter contributions and launchers for RMI, JMS and JSP git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815305 13f79535-47bb-0310-9956-ffa450edef68 --- .../contributions/currency-jsp/pom.xml | 65 ++++++++++++++++++++++ .../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 ++++++++++++++++ 4 files changed, 190 insertions(+) create mode 100644 sandbox/travelsample/contributions/currency-jsp/pom.xml create mode 100644 sandbox/travelsample/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sandbox/travelsample/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml create mode 100644 sandbox/travelsample/contributions/currency-jsp/src/main/webapp/currency-converter.jsp (limited to 'sandbox/travelsample/contributions/currency-jsp') diff --git a/sandbox/travelsample/contributions/currency-jsp/pom.xml b/sandbox/travelsample/contributions/currency-jsp/pom.xml new file mode 100644 index 0000000000..25682147ea --- /dev/null +++ b/sandbox/travelsample/contributions/currency-jsp/pom.xml @@ -0,0 +1,65 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6-SNAPSHOT + + 1.0-SNAPSHOT + scatours-contribution-currency-jsp + war + Apache Tuscany SCA Tours Currency Converter JSP Contribution + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6-SNAPSHOT + compile + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-host-webapp + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + scatours-contribution-currency + 1.0-SNAPSHOT + + + + + ${artifactId} + + diff --git a/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite b/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite new file mode 100644 index 0000000000..50667b1ac0 --- /dev/null +++ b/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml b/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..3b2c79ca76 --- /dev/null +++ b/sandbox/travelsample/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/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/currency-converter.jsp b/sandbox/travelsample/contributions/currency-jsp/src/main/webapp/currency-converter.jsp new file mode 100644 index 0000000000..d1970a37ab --- /dev/null +++ b/sandbox/travelsample/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

+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