diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-23 08:36:16 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-23 08:36:16 +0000 |
commit | fa8b02df1b48a33929dfa4ff3eeebc12231de737 (patch) | |
tree | 0f5d3a377ac2de3212a8f078e170083403360606 /sandbox/ant/sca/trunk/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp | |
parent | 0daa6e66908eb59332ee38b5bd2193ba40a7eb55 (diff) |
Copy trunk to test sandbox trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@757348 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
3 files changed, 40 insertions, 0 deletions
diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp b/sandbox/ant/sca/trunk/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/trunk/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/trunk/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp b/sandbox/ant/sca/trunk/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/trunk/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/trunk/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/sandbox/ant/sca/trunk/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/trunk/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}"/> |