[cvs] example commit by mtraum: reorganized the jsps and added the
standard
JCorporate Ltd
jcorp at jcorporate.com
Thu Mar 17 06:12:34 UTC 2005
Log Message:
-----------
reorganized the jsps and added the standard admin menu
Modified Files:
--------------
example/weblog/src/expresso/components/weblog:
frame.jsp
example/weblog/src/WEB-INF/config:
weblog-config.xml
Added Files:
-----------
example/weblog/src/expresso/components/weblog:
main.jsp
toc.jsp
example/weblog/src/expresso/components/weblog/entry:
processDelete.jsp
delete.jsp
putEntry.jsp
view.jsp
addEntry.jsp
example/weblog/src/expresso/components/weblog/style:
weblog.css
example/weblog/src/expresso/components/weblog/doc:
index.html
example/weblog/src/expresso/components/weblog/doc/style:
docbook.css
example/weblog/src/expresso/components/weblog/login:
login.jsp
loginSucess.jsp
logout.jsp
example/weblog/src/expresso/components/weblog/register:
register.jsp
status.jsp
Removed Files:
-------------
example/weblog/src/expresso/components/weblog:
logout.jsp
addEntry.jsp
login.jsp
register.jsp
putEntry.jsp
status.jsp
loginSucess.jsp
processDelete.jsp
test.html
view.jsp
delete.jsp
example/weblog/src/expresso/components/weblog/doc/style:
weblog.css
Revision Data
-------------
--- /dev/null
+++ weblog/src/expresso/components/weblog/doc/index.html
@@ -0,0 +1,42 @@
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
+ <link href="../../../style/default.css" rel="styleSheet" type="text/css">
+ <title>Contents</title>
+ </head>
+
+ <body bgcolor="white">
+ <h1 align="center"><strong>Weblog Documentation</strong></font></h1>
+ <hr>
+ <p align="center"><strong></strong></p>
+ <h2 align="left"><strong><a ></a>General Information
+ </strong></h2>
+ <table width="75%" border="0" align="center" cellpadding="6">
+ <tr>
+ <td width="7%">
+ <div align="center"><img src="../../../doc/new.gif" width="28" height="11"></div>
+ </td>
+ <td width="93%"><a href="tutorial.html">Weblog Tutorial</a></td>
+ </tr>
+ <tr>
+ <td width="7%" height="33">
+ <div align="center"><img src="../../../doc/new.gif" width="28" height="11"></div>
+ </td>
+ <td width="93%"><a href="ChangeLog.html">Detailed changes since last release (Changelog)</a></td>
+ </tr>
+ </table>
+ <p> </p>
+ <h2>Reference</h2>
+ <table width="75%" border="0" align="center" cellpadding="6">
+ <tr>
+ <td width="7%">
+ <div align="center"><img src="../../../doc/new.gif" width="28" height="11"></div>
+ </td>
+ <td width="93%"><a href="javadoc/index.html">Javadocs</a></td>
+ </tr>
+
+ </table>
+ <p> </p>
+ </body>
+</html>
+
--- /dev/null
+++ weblog/src/expresso/components/weblog/doc/style/docbook.css
@@ -0,0 +1,57 @@
+body { font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 9pt;
+ background-color: white;
+ color: black;
+ margin: 10pt; }
+
+ table { font-size: 9pt }
+
+ .title { color: black;}
+ h1.title {color: black; text-align:center}
+ h2.title {color: blue; text-align:left}
+ .subtitle {color: blue }
+
+ .author {color: #666666; text-align: center}
+
+ .version, .maintainer {color: #a0a0a0; font-size: 10pt; text-decoration:none; }
+
+ .inlinemediaobject {padding: 12pt; margin: 5pt; }
+ .mediaobject {text-align: center; padding: 12pt; margin: 5pt; border: solid 2px black;}
+ .programlisting,
+ .programlistingco,
+ .screen { background-color: #d0d0d0;
+ padding: 5pt;
+ margin: 5pt}
+
+ :hover { color: red;
+ text-decoration: underline; }
+
+ a { text-decoration: underline;
+ color: navy; }
+
+ .navfooter, .navheader {
+ background-color: #ffcc33;
+ margin-bottom : 12pt;
+}
+
+ .chapter, .refentry,
+ .book, .reference,
+ .preface, .colophon { margin-left: 10pt;
+ margin-right: 10pt; }
+
+.note {
+ margin-top : 10pt;
+ margin-bottom : 10pt;
+ border : 1 solid Black;
+ padding-left : 10pt;
+ padding-right : 10pt;
+}
+
+.sidebar {
+ margin-top : 10pt;
+ margin-bottom : 10pt;
+ border : 1 solid Black;
+ padding-left : 10pt;
+ padding-right : 10pt;
+ background-color: #ffffc0;
+}
--- weblog/src/expresso/components/weblog/doc/style/weblog.css
+++ /dev/null
@@ -1 +0,0 @@
-body { color: red ; font-family: Arial }
Index: weblog-config.xml
===================================================================
RCS file: /home/javacorp/.cvs/expresso/example/weblog/src/WEB-INF/config/weblog-config.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lweblog/src/WEB-INF/config/weblog-config.xml -Lweblog/src/WEB-INF/config/weblog-config.xml -u -r1.2 -r1.3
--- weblog/src/WEB-INF/config/weblog-config.xml
+++ weblog/src/WEB-INF/config/weblog-config.xml
@@ -23,28 +23,28 @@
name="default"
scope="request"
validate="false">
- <forward name="promptLogin" path="/expresso/components/weblog/login.jsp"/>
- <forward name="processLogin" path="/expresso/components/weblog/loginSucess.jsp"/>
- <forward name="processLogout" path="/expresso/components/weblog/logout.jsp"/>
+ <forward name="promptLogin" path="/expresso/components/weblog/login/login.jsp"/>
+ <forward name="processLogin" path="/expresso/components/weblog/login/loginSucess.jsp"/>
+ <forward name="processLogout" path="/expresso/components/weblog/login/logout.jsp"/>
</action>
<action path="/weblog/WlogRegister"
type="com.jcorporate.expresso.demo.weblog.controller.WlogRegister"
name="default"
scope="request"
validate="false">
- <forward name="promptSelfRegister" path="/expresso/components/weblog/register.jsp"/>
- <forward name="processSelfRegister" path="/expresso/components/weblog/status.jsp"/>
+ <forward name="promptSelfRegister" path="/expresso/components/weblog/register/register.jsp"/>
+ <forward name="processSelfRegister" path="/expresso/components/weblog/register/status.jsp"/>
</action>
<action path="/weblog/EntryController"
type="com.jcorporate.expresso.demo.weblog.controller.EntryController"
name="default"
scope="request"
validate="false">
- <forward name="viewEntry" path="/expresso/components/weblog/view.jsp"/>
- <forward name="deleteEntry" path="/expresso/components/weblog/delete.jsp"/>
- <forward name="addEntryPrompt" path="/expresso/components/weblog/addEntry.jsp"/>
- <forward name="addEntryProcess" path="/expresso/components/weblog/putEntry.jsp"/>
- <forward name="processDelete" path="/expresso/components/weblog/processDelete.jsp"/>
+ <forward name="viewEntry" path="/expresso/components/weblog/entry/view.jsp"/>
+ <forward name="deleteEntry" path="/expresso/components/weblog/entry/delete.jsp"/>
+ <forward name="addEntryPrompt" path="/expresso/components/weblog/entry/addEntry.jsp"/>
+ <forward name="addEntryProcess" path="/expresso/components/weblog/entry/putEntry.jsp"/>
+ <forward name="processDelete" path="/expresso/components/weblog/entry/processDelete.jsp"/>
</action>
</action-mappings>
</struts-config>
--- /dev/null
+++ weblog/src/expresso/components/weblog/login/login.jsp
@@ -0,0 +1,123 @@
+<%
+/* =================================================================
+ * The Jcorporate Apache Style Software License, Version 1.2 05-07-2002
+ *
+ * Copyright (c) 1995-2002 Jcorporate Ltd. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by Jcorporate Ltd.
+ * (http://www.jcorporate.com/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. "Jcorporate" and product names such as "Expresso" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written permission,
+ * please contact info at jcorporate.com.
+ *
+ * 5. Products derived from this software may not be called "Expresso",
+ * or other Jcorporate product names; nor may "Expresso" or other
+ * Jcorporate product names appear in their name, without prior
+ * written permission of Jcorporate Ltd.
+ *
+ * 6. No product derived from this software may compete in the same
+ * market space, i.e. framework, without prior written permission
+ * of Jcorporate Ltd. For written permission, please contact
+ * partners at jcorporate.com.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL JCORPORATE LTD OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Jcorporate Ltd. Contributions back
+ * to the project(s) are encouraged when you make modifications.
+ * Please send them to support at jcorporate.com. For more information
+ * on Jcorporate Ltd. and its products, please see
+ * <http://www.jcorporate.com/>.
+ *
+ * Portions of this software are based upon other open source
+ * products and are subject to their respective licenses.
+ *
+ * Contributors:
+ * David Lloyd (dlloyd at jgroup.net)
+ * Tino Dai (tdai at jgroup.net)
+ */
+%>
+<%@ taglib uri="/WEB-INF/tld/expresso.tld" prefix="expresso" %>
+<%@ taglib uri="/WEB-INF/tld/expresso-html.tld" prefix="html" %>
+<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
+
+<%@ include file="../standard.inc" %>
+<html>
+ <head>
+ <style> @import url(<%=contextPath%>/expresso/components/weblog/style/weblog.css); </style>
+
+ <title>Weblog Login</title>
+</head>
+<body bgcolor="black">
+ <table>
+ <tr><td>
+ <img src="<%=contextPath%>/expresso/components/weblog/images/weblog_title.jpg">
+ </td>
+ <td>
+ <table>
+ <html:form action="/weblog/WlogLogin.do" method="POST">
+ <tr><td colspan=2>
+ <H2>Come right in and make yourself at home!</h2>
+ </td></tr>
+ <tr><td colspan=2>
+ <expresso:ErrorMessages />
+ </td></tr>
+ <tr><td>
+ <p>Username:</p>
+ </td>
+ <td>
+ <html:text property="LoginName" size="15"/>
+ </td></tr>
+ <tr><td>
+ <p>Password:</p>
+ </td>
+ <td>
+ <html:password property="Password" />
+ </td></tr>
+ <tr><td colspan=2 align=center>
+ <html:submit property="processLogin" />
+
+ <expresso:IfLoggedIn inverse="true">
+ <html:submit property="promptRegister" />
+ </expresso:IfLoggedIn>
+ </td></tr>
+ <tr><td colspan=2 align=center>
+ <html:link page="/expresso/doc/tutorial.html">Tutorial</html:link>
+ </td></tr>
+ </html:form>
+ </table>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+++ weblog/src/expresso/components/weblog/login/loginSucess.jsp
@@ -0,0 +1,100 @@
+<%
+/* =================================================================
+ * The Jcorporate Apache Style Software License, Version 1.2 05-07-2002
+ *
+ * Copyright (c) 1995-2002 Jcorporate Ltd. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by Jcorporate Ltd.
+ * (http://www.jcorporate.com/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. "Jcorporate" and product names such as "Expresso" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written permission,
+ * please contact info at jcorporate.com.
+ *
+ * 5. Products derived from this software may not be called "Expresso",
+ * or other Jcorporate product names; nor may "Expresso" or other
+ * Jcorporate product names appear in their name, without prior
+ * written permission of Jcorporate Ltd.
+ *
+ * 6. No product derived from this software may compete in the same
+ * market space, i.e. framework, without prior written permission
+ * of Jcorporate Ltd. For written permission, please contact
+ * partners at jcorporate.com.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL JCORPORATE LTD OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Jcorporate Ltd. Contributions back
+ * to the project(s) are encouraged when you make modifications.
+ * Please send them to support at jcorporate.com. For more information
+ * on Jcorporate Ltd. and its products, please see
+ * <http://www.jcorporate.com/>.
+ *
+ * Portions of this software are based upon other open source
+ * products and are subject to their respective licenses.
+ *
+ * Contributors:
+ * David Lloyd (dlloyd at jgroup.net)
+ * Tino Dai (tdai at jgroup.net)
+ */
+%>
+
+<%@ taglib uri="/WEB-INF/tld/expresso-html.tld" prefix="html" %>
+
+
+<%@ include file="../standard.inc" %>
+
+<html>
+ <head>
+ <style> @import url(<%=contextPath%>/expresso/components/weblog/style/weblog.css); </style>
+ <title>
+ Expresso Login Sucessful
+ </title>
+ </head>
+ <body bgcolor="black">
+ <table>
+ <tr><td><img src="<%=contextPath%>/expresso/components/weblog/images/weblog_title.jpg"></td>
+ <td>
+ <H2>Welcome to Weblog</h2>
+ <p>Welcome to the Expresso Weblog Cafe. This is a weblog implemented for
+ the Wafer Project. And also a guide for newbies to learn the Expresso framework.
+ Please stay tuned for the accompanying tutorial. And until then, have a great time</p>
+
+ <html:form action="/weblog/EntryController.do" method="POST">
+ <html:submit property="viewEntry"/>
+ <html:submit property="deleteEntry"/>
+ <html:submit property="addEntryPrompt"/>
+ </html:form>
+ </td></tr>
+ </table>
+ </body>
+</html>
\ No newline at end of file
--- /dev/null
+++ weblog/src/expresso/components/weblog/login/logout.jsp
@@ -0,0 +1,98 @@
+<%
+/* =================================================================
+ * The Jcorporate Apache Style Software License, Version 1.2 05-07-2002
+ *
+ * Copyright (c) 1995-2002 Jcorporate Ltd. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by Jcorporate Ltd.
+ * (http://www.jcorporate.com/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. "Jcorporate" and product names such as "Expresso" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written permission,
+ * please contact info at jcorporate.com.
+ *
+ * 5. Products derived from this software may not be called "Expresso",
+ * or other Jcorporate product names; nor may "Expresso" or other
+ * Jcorporate product names appear in their name, without prior
+ * written permission of Jcorporate Ltd.
+ *
+ * 6. No product derived from this software may compete in the same
+ * market space, i.e. framework, without prior written permission
+ * of Jcorporate Ltd. For written permission, please contact
+ * partners at jcorporate.com.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL JCORPORATE LTD OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Jcorporate Ltd. Contributions back
+ * to the project(s) are encouraged when you make modifications.
+ * Please send them to support at jcorporate.com. For more information
+ * on Jcorporate Ltd. and its products, please see
+ * <http://www.jcorporate.com/>.
+ *
+ * Portions of this software are based upon other open source
+ * products and are subject to their respective licenses.
+ *
+ * Contributors:
+ * David Lloyd (dlloyd at jgroup.net)
+ * Tino Dai (tdai at jgroup.net)
+ */
+%>
+
+<%@ taglib uri="/WEB-INF/tld/expresso-html.tld" prefix="html" %>
+
+<%@ include file="../standard.inc" %>
+
+<html>
+ <head>
+ <style>
+ @import url(<%=contextPath%>/expresso/components/weblog/style/weblog.css);
+ </style>
+ <title>
+ Expresso Logout
+ </title>
+ </head>
+ <body bgcolor="black">
+ <table>
+ <tr><td>
+ <img src="<%=contextPath%>/expresso/components/weblog/images/weblog_title.jpg">
+ <td>
+ <h2 align="center">
+ Thanks for stopping by!
+ <html:form action="/weblog/WlogLogin.do" method="POST">
+ <html:submit property="promptLogin" />
+ </html:form>
+ </h2>
+ </td></tr>
+ </table>
+ </body>
+</html>
\ No newline at end of file
--- /dev/null
+++ weblog/src/expresso/components/weblog/register/status.jsp
@@ -0,0 +1,77 @@
+<%@ page language="java"%>
+<%@ taglib uri="/WEB-INF/tld/expresso.tld" prefix="expresso" %>
+<%@ taglib uri="/WEB-INF/tld/expresso-bean.tld" prefix="bean" %>
+<%@ taglib uri="/WEB-INF/tld/expresso-html.tld" prefix="html" %>
+
+
+<%@ include file="../standard.inc" %>
+<HTML>
+<HEAD>
+ <expresso:stylesheet/>
+ <TITLE>Login Success</TITLE>
+</head>
+<body class="jc-default">
+<!-- status.jsp -->
+<%@ include file="top.inc" %>
+
+<html:form styleClass="jc-default" action="/Login.do">
+<%@ include file="header.inc" %>
+</html:form>
+
+<%@ include file="errorRow.inc" %>
+<expresso:IfElementExists name="errorMessage" type="output">
+ <expresso:OutputTag name="errorMessage">
+ <P class="jc-errorheader">
+ <expresso:ContentTag />
+ </p>
+ </expresso:OutputTag>
+</expresso:IfElementExists>
+<expresso:IfElementExists name="successMessage" type="output">
+ <expresso:OutputTag name="successMessage">
+ <P class="jc-successheader">
+ <expresso:ContentTag />
+ </p>
+ </expresso:OutputTag>
+</expresso:IfElementExists>
+
+<expresso:IfElementExists name="remembered" type="output">
+<p class="jc-info">
+ <bean:write property="remembered"/>
+</p>
+</expresso:IfElementExists>
+
+<expresso:IfElementExists name="OriginalURL" type="output">
+<p class="jc-info">
+ <a href="<bean:write property="OriginalURL"/>">
+ <bean:message key="continueTo"/>
+ </a>
+</p>
+</expresso:IfElementExists>
+
+<expresso:IfElementExists name="lang" type="output">
+ <expresso:OutputTag name="lang">
+ <P align="center"><small>
+ <expresso:ContentTag />
+ </small></p>
+ </expresso:OutputTag>
+</expresso:IfElementExists>
+
+<expresso:IfElementExists name="infoMessage" type="output">
+ <expresso:OutputTag name="infoMessage">
+ <p class="jc-info">
+ <expresso:ContentTag />
+ </p>
+ </expresso:OutputTag>
+</expresso:IfElementExists>
+
+<expresso:IfElementExists name="passwordMessage" type="output">
+ <expresso:OutputTag name="passwordMessage">
+ <p class="jc-info">
+ <expresso:ContentTag />
+ </p>
+ </expresso:OutputTag>
+</expresso:IfElementExists>
+
+</BODY>
+</HTML>
+
--- /dev/null
+++ weblog/src/expresso/components/weblog/register/register.jsp
@@ -0,0 +1,144 @@
+<%@ page language="java"%>
+
+<%@ taglib uri="/WEB-INF/tld/expresso.tld" prefix="expresso"%>
+<%@ taglib uri="/WEB-INF/tld/expresso-html.tld" prefix="html"%>
+<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
+
+<%@ include file="../standard.inc" %>
+
+<html:html>
+<HEAD>
+<html:base />
+
+<style> @import url(<%=contextPath%>/expresso/components/weblog/style/weblog.css); </style>
+<title>Register New User</title>
+</head>
+
+<!-- register.jsp -->
+
+<body bgcolor="black">
+<table>
+ <tr>
+ <td><img
+ src="<%=contextPath%>/expresso/components/weblog/images/weblog_title.jpg"></td>
+ </tr>
+ <tr>
+ <td>
+ <table width="100%" border="0">
+ <TR>
+ <TD colspan="2" valign="top">
+ <hr>
+ </TD>
+ </TR>
+ <tr>
+ <td colspan="2">
+ <p class="jc-pageheader" size="+1">New User Registration</p>
+ </td>
+ </tr>
+ <TR>
+ <TD colspan="2" valign="top">
+ <HR>
+ </TD>
+ </TR>
+ <tr>
+
+ <td width="50%">
+ <div align="right">Fields with a '*' are required</div>
+ </td>
+ </tr>
+ </table>
+ <expresso:IfErrorExists>
+ <expresso:ErrorMessages />
+ </expresso:IfErrorExists>
+
+ <html:form action="/weblog/WlogRegister.do" method="POST">
+
+ <div align="center">
+ <TABLE border="0" align="center" width="80%">
+
+ <c:forEach items="${controllerResponse.blocks}" var="eachBlock">
+ <tr class="jc-tabletitle">
+ <td colspan=2 valign="middle" class="jc-form-divider">
+ <div align="left" class="jc-dbobj-title"><c:out
+ value="${eachBlock.namedOutputs['block-title'].content}" /></div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td>
+ <table align="center">
+ <c:forEach items="${eachBlock.inputs}" var="eachInput">
+ <tr>
+ <td><c:out value="${eachInput.label}" /></td>
+
+ <c:choose>
+ <c:when test="${eachInput.attributes['multiValued'] != null}">
+ <td><html:select styleClass="jc-formfield" name="eachInput" />
+ </td>
+ </c:when>
+
+ <c:otherwise>
+ <c:choose>
+ <c:when test="${eachInput.attributes['password'] != null}">
+
+ <td><html:password styleClass="jc-formfield" name="eachInput" /></td>
+
+ </c:when>
+ <c:otherwise>
+ <c:choose>
+ <c:when test="${eachInput.attributes['checkbox'] != null}">
+ <td><html:checkbox name="eachInput" /></td>
+ </c:when>
+ <c:otherwise>
+ <bean:define property="@type" id="type" name="eachInput" />
+ <c:choose>
+ <c:when test="${eachInput.type == 'text'}">
+ <td><html:textarea styleClass="jc-formfield"
+ name="eachInput" rows="7" cols="40" /></td>
+ </c:when>
+ <c:otherwise>
+ <td><html:text styleClass="jc-formfield"
+ name="eachInput" /></td>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+ </c:choose>
+ </c:otherwise>
+ </c:choose>
+ </tr>
+ </c:forEach>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ </c:forEach>
+ <tr>
+ <td colspan="2" class="jc-form-divider"> </td>
+ </tr>
+ <tr>
+ <td>
+ <table align="center" width="50%">
+ <tr>
+ <td align="left" width="50%"><html:submit
+ property="processSelfRegister" /></td>
+ <td align="right" width="50%"> <input type="reset"
+ name="Reset Data" value="Reset"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </TABLE>
+ </div>
+ </html:form>
+</table>
+</body>
+</html:html>
\ No newline at end of file
More information about the cvs
mailing list