From fb439dc279fc78775978f2a47001fe13f039c5df Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 3 Dec 2010 08:01:37 +0000 Subject: Clean up the getting started helloworld webapp. Update it to use a jsp to invoke the component git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1041721 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/WEB-INF/web.composite | 30 ++++++++++++++++++ .../src/main/webapp/WEB-INF/web.xml | 16 +++------- .../helloworld-webapp/src/main/webapp/hello.html | 32 ------------------- .../helloworld-webapp/src/main/webapp/hello.jsp | 37 ++++++++++++++++++++++ 4 files changed, 71 insertions(+), 44 deletions(-) create mode 100644 sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.html create mode 100644 sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.jsp (limited to 'sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp') diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..0c03826f99 --- /dev/null +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.xml index 755162e305..b83a9c3417 100644 --- a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.xml +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/WEB-INF/web.xml @@ -24,18 +24,6 @@ Apache Tuscany Helloworld Sample - - contributions - /WEB-INF/sca-contributions - - - - tuscany org.apache.tuscany.sca.host.webapp.TuscanyServletFilter @@ -46,4 +34,8 @@ /* + + hello.jsp + + diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.html b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.html deleted file mode 100644 index 05038391a0..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - -Apache Tuscany Helloworld Servlet Sample - - - - -

Apache Tuscany Helloworld Servlet Sample

- -WSDL for binding.ws of the Helloworld service of the HelloWorldWS component - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.jsp b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..57abb08ca2 --- /dev/null +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/src/main/webapp/hello.jsp @@ -0,0 +1,37 @@ + + +<%@ 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