From 3c7c4a749baafcf375f4785a7668d3a25c9063e3 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 13 Nov 2009 01:42:27 +0000 Subject: Moving 1.x trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835700 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-1.x/trunk/samples/helloworld-jsp/pom.xml | 61 ++++++++++++++++++++++ .../src/main/java/sample/HelloworldService.java | 7 +++ .../main/java/sample/HelloworldServiceImpl.java | 12 +++++ .../webapp/META-INF/sca-deployables/web.composite | 34 ++++++++++++ .../helloworld-jsp/src/main/webapp/WEB-INF/web.xml | 42 +++++++++++++++ .../helloworld-jsp/src/main/webapp/hello.jsp | 36 +++++++++++++ 6 files changed, 192 insertions(+) create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/pom.xml create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/hello.jsp (limited to 'sca-java-1.x/trunk/samples/helloworld-jsp') diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/pom.xml b/sca-java-1.x/trunk/samples/helloworld-jsp/pom.xml new file mode 100644 index 0000000000..820d8e3732 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/pom.xml @@ -0,0 +1,61 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6-SNAPSHOT + ../../pom.xml + + sample-helloworld-jsp + war + Apache Tuscany SCA Helloworld JSP Sample + + + + + 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 + + + + + + ${artifactId} + + + diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..2b92fd4661 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java @@ -0,0 +1,7 @@ +package sample; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java new file mode 100644 index 0000000000..be83d3b407 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java @@ -0,0 +1,12 @@ +package sample; + +import org.osoa.sca.annotations.Service; + +@Service(HelloworldService.class) +public class HelloworldServiceImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite new file mode 100644 index 0000000000..16bc08fc10 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..46285614da --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,42 @@ + + + + + + Apache Tuscany Helloworld JSP Sample + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + hello.jsp + + + diff --git a/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/hello.jsp b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..beac8e457f --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-jsp/src/main/webapp/hello.jsp @@ -0,0 +1,36 @@ + +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + + +

Apache Tuscany Helloworld JSP Sample

+ + Calling HelloworldService sayHello("world") returns: + +

+ + <%= service.sayHello("world") %> + + + -- cgit v1.2.3