summaryrefslogtreecommitdiffstats
path: root/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 17:02:07 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 17:02:07 +0000
commit875ac5d246878b199c393e9700c8a085c8939333 (patch)
treed5e3118530829e4b244de744ece37495142dafd5 /sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp
parent743de5fd012ae4e753a584e57ad1252aa9e6208f (diff)
[maven-release-plugin] copy for branch tb3
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@756088 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp')
-rw-r--r--sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp8
-rw-r--r--sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp21
-rw-r--r--sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp11
3 files changed, 40 insertions, 0 deletions
diff --git a/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp
new file mode 100644
index 0000000000..ea3fc55714
--- /dev/null
+++ b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp
@@ -0,0 +1,8 @@
+<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>
+
+<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Welcome">
+ <s:layout-component name="body">
+ <p>sayHello returns: ${actionBean.hello}</p>
+ <p>Congratulations, you've set up a Stripes SCA project!</p>
+ </s:layout-component>
+</s:layout-render>
diff --git a/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp
new file mode 100644
index 0000000000..72e696ecb8
--- /dev/null
+++ b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp
@@ -0,0 +1,21 @@
+<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>
+
+<s:layout-definition>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>${title}</title>
+ <link rel="stylesheet" type="text/css" href="${contextPath}/css/style.css">
+ <s:layout-component name="head">
+ </s:layout-component>
+ </head>
+ <body>
+ <div id="main">
+ <s:layout-component name="body">
+ </s:layout-component>
+ </div>
+ </body>
+</html>
+
+</s:layout-definition> \ No newline at end of file
diff --git a/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp
new file mode 100644
index 0000000000..4e38b14e9f
--- /dev/null
+++ b/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp
@@ -0,0 +1,11 @@
+<%-- 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} --%>
+<c:set var="contextPath" value="${pageContext.request.contextPath}"/>