| career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td>Description and Usage </tr> <% if (template.equals(MVNForumGlobal.TEMPLATE_SENDACTIVATECODE_PREFIX)) {%> <tr class="trow1"> <td>${memberName} </tr> <tr class="trow2"> <td>${serverName} </tr> <tr class="trow1"> <td>${MVNForumInfo} </tr> <tr class="trow2"> <td>${activationUrl} </tr> <tr class="trow1"> <td>${activateCode} </tr> <%} else if (template.equals(MVNForumGlobal.TEMPLATE_WATCHMAIL_PREFIX)) {%> <tr class="trow1"> <td>${lastSent} <td>The last watch mail sent date </tr> <tr class="trow2"> <td>${now} <td>Now/Present </tr> <tr class="trow1" valign='top'> <td>${forumBase} <td>The forum Link </tr> <tr class="trow2" valign='top'> <td>threadWatchList <td>The thread watch list. Iterator over a list of thread watch list. <br/>Usage: <#list threadWatchList as mailbeans > ...</#list> </tr> <tr class="trow1" valign='top'> <td>forumName <td>Above is the properties of the thread watch list : <br/>Usage: <pre> <#list threadWatchList as mailbeans > <#if mailbeans.leader > [Category: ${mailbeans.categoryName}] [Forum: ${mailbeans.forumName}] </#if> Thread [${mailbeans.threadTopic}] given to us by ${mailbeans.memberName} last posted by ${mailbeans.lastPostMemberName} on ${mailbeans.threadLastPostDate} ${mailbeans.threadUrl} </#list> </pre> </td> </tr> <tr class="trow2"> <td>threadTopic <td>Thread Topic. Usage: ${mailbeans.threadTopic} </tr> <tr class="trow1"> <td>memberName <td>Thread Owner. Usage: ${mailbeans.memberName} </tr> <tr class="trow2"> <td>lastPostMemberName <td>The last post member in the thread. Usage: ${mailbeans.lastPostMemberName} </tr> <tr class="trow1"> <td>threadLastPostDate <td>The last post date in the thread. Usage: ${mailbeans.threadLastPostDate} </tr> <tr class="trow2"> <td>threadUrl <td>Thread URL. Usage: ${mailbeans.threadUrl} </tr> <%} else if (template.equals(MVNForumGlobal.TEMPLATE_FORGOTPASSWORD_PREFIX)) {%> <tr class="trow1"> <td>${memberName} <td>Member Login Name </tr> <tr class="trow2"> <td>${serverName} <td>Server Name </tr> <tr class="trow1"> <td>${MVNForumInfo} <td>Forum Information </tr> <tr class="trow2"> <td>${passwordResetUrl} <td>Resetting URL </tr> <tr class="trow1"> <td>${currentTempPassword} <td>Current temporary Password </tr> <%}%> <tr class="trowfinal"> <td colspan='2'> Please see template help at <a href="">FreeMarker </td> </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">Edit Mail Template: </tr> <% if (success) {%> <tr class="tcat"> <td colspan="2" align="center" class="warning">The template has been saved successfully. </tr> <% } %> <tr class="trow1"> <td>* Template for <td> <form name="changetemplate" method="get" action="edittemplate"> <select name="template" onchange='document.changetemplate.submit();'> <option value="forgotpasswordtemplate" <%if (template.equals("forgotpasswordtemplate")) {%> selected <%}%>>Recovery Passwords <option value="watchmailtemplate" <%if (template.equals("watchmailtemplate")) {%> selected <%}%>>Watch Mail <option value="sendactivemailtemplate" <%if (template.equals("sendactivemailtemplate")) {%> selected <%}%> >Active Members </select> </form> </td> </tr> <form action="updatetemplate" method="post" name="submitform"> <input name="template" type="hidden" value="<%=template%>"/> <tr class="trow1"> <td>* Subject: <td nowrap> </tr> <tr class="trow2"> <td>* Body: <td nowrap> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> <input type="button" name="submitbutton" value="Save Template" onclick='SubmitForm();' class="mainoption"/> <input type="reset" value="Reset" class="liteoption"> </td> </tr> </form> </table> <br/> </fmt:bundle> <%@ include file="footer.jsp"%> </body> </html>

What this is

This file is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

 - $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/edittemplate.jsp,v 1.5 2005/01/18 11:01:37 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.5 $
 - $Date: 2005/01/18 11:01:37 $
 - ====================================================================
 - Copyright (C) 2002-2005 by
 - This program is free software; you can redistribute it and/or
 - modify it under the terms of the GNU General Public License
 - as published by the Free Software Foundation; either version 2
 - of the License, or any later version.
 - All copyright notices regarding mvnForum MUST remain intact
 - in the scripts and in the outputted HTML.
 - The "powered by" text/logo with a link back to
 - and in the
 - footer of the pages MUST remain visible when the pages
 - are viewed on the internet or intranet.
 - This program is distributed in the hope that it will be useful,
 - but WITHOUT ANY WARRANTY; without even the implied warranty of
 - GNU General Public License for more details.
 - You should have received a copy of the GNU General Public License
 - along with this program; if not, write to the Free Software
 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 - Support can be obtained from support forums at:
 - Correspondence and Marketing Questions can be sent to:
 - @author: Phong, Ta Quoc
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="com.mvnforum.db.*" %>
<%@ page import="com.mvnforum.MVNForumGlobal" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
  <title> - Edit Email Templates
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0">
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>
<script type="text/javascript">
function SubmitForm() {
  if (ValidateForm() == true ) {

function ValidateForm() {
  if (isBlank(document.submitform.subject, "Subject")) return false;
  if (isBlank(document.submitform.body, "Body")) return false;
  return true;

<%@ include file="header.jsp"%>
  String subject = ParamUtil.getAttribute(request, "TemplateSubject");
  String body = ParamUtil.getAttribute(request, "TemplateBody");
  String template = ParamUtil.getParameter(request, "template");
  boolean success = (! ParamUtil.getAttribute(request, "Successful").equals(""));
  if (template.equals("")) {
  // note that we already check the template input in the Java Handler
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="pagedesc">
    You can customize the content of template files, which used to send email for a certain purpose 
      (recovery his password, activate his account, or inform the new watch.)
    <br/>Note: You can using the predefined items which starts with "${" and ends with "}".
    <br/>You could use the template items below:
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="theader">
Member Login NameServer NameForum InformationActivation URL Activation Code
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.