From e6c733c4d9d9116216c0a0105b770267918a12f9 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 29 Aug 2010 18:32:20 +0000 Subject: Sandbox to experiment with different ways to embed the runtime. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@990620 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/WEB-INF/jsp/home.jsp | 26 +++++++++ .../src/main/webapp/WEB-INF/jsp/layout.jsp | 39 ++++++++++++++ .../src/main/webapp/WEB-INF/jsp/taglibs.jsp | 29 ++++++++++ .../src/main/webapp/WEB-INF/web.composite | 34 ++++++++++++ .../src/main/webapp/WEB-INF/web.xml | 61 ++++++++++++++++++++++ .../helloworld-stripes/src/main/webapp/index.html | 24 +++++++++ 6 files changed, 213 insertions(+) create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.composite create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.xml create mode 100644 sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/index.html (limited to 'sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp') diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp new file mode 100644 index 0000000000..0681c1f2bf --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp @@ -0,0 +1,26 @@ + +<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> + + + +

sayHello returns: ${actionBean.hello}

+

Congratulations, you've set up a Stripes SCA project!

+
+
diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp new file mode 100644 index 0000000000..d0fb716b80 --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp @@ -0,0 +1,39 @@ + +<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> + + + + + + + ${title} + + + + + +
+ + +
+ + + +
\ No newline at end of file diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp new file mode 100644 index 0000000000..f85602fcfa --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp @@ -0,0 +1,29 @@ + +<%-- Stripes TLD --%> +<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> +<%@ taglib prefix="sdyn" uri="http://stripes.sourceforge.net/stripes-dynattr.tld" %> + +<%-- JSTL TLDs --%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> + +<%-- This is so that you can conveniently refer to the context path with ${contextPath} --%> + diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.composite b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..8976adde3c --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.xml b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..f01584cc2f --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,61 @@ + + + + + Apache Tuscany Helloworld Stripes Sample + + + org.apache.tuscany.sca.host.webapp.TuscanyContextListener + + + + StripesFilter + net.sourceforge.stripes.controller.StripesFilter + + ActionResolver.Packages + mystripes.action + + + Extension.Packages + org.apache.tuscany.sca.stripes + + + + + DispatcherServlet + net.sourceforge.stripes.controller.DispatcherServlet + 1 + + + + StripesFilter + DispatcherServlet + REQUEST + FORWARD + + + + DispatcherServlet + *.htm + + + + index.html + + + diff --git a/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/index.html b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/index.html new file mode 100644 index 0000000000..c79d29e6a5 --- /dev/null +++ b/sandbox/sebastien/java/embed/samples/webapps/helloworld-stripes/src/main/webapp/index.html @@ -0,0 +1,24 @@ + + + + + + + -- cgit v1.2.3