From 28f92c6fc62f3bc0637ac77681aabcc8c0b5e42c Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 11 Sep 2008 04:12:24 +0000 Subject: Renaming branch git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@694107 13f79535-47bb-0310-9956-ffa450edef68 --- .../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 +++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java create mode 100644 branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java create mode 100644 branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml create mode 100644 branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/hello.jsp (limited to 'branches/sca-trunk-20080910/samples/helloworld-jsp/src/main') diff --git a/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..2b92fd4661 --- /dev/null +++ b/branches/sca-trunk-20080910/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/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java new file mode 100644 index 0000000000..be83d3b407 --- /dev/null +++ b/branches/sca-trunk-20080910/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/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite new file mode 100644 index 0000000000..16bc08fc10 --- /dev/null +++ b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..46285614da --- /dev/null +++ b/branches/sca-trunk-20080910/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/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/hello.jsp b/branches/sca-trunk-20080910/samples/helloworld-jsp/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..beac8e457f --- /dev/null +++ b/branches/sca-trunk-20080910/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