home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td width="100%" nowrap> <a class="nav" href="<%=indexUrl%>"> »  <a class="nav" href="index">Admin CP »  <a class="nav" href="configindex">Config mvnForum »  Config mvnForum - Step 2 </td> </tr> </table> <br/> <form action="configsteptwoprocess" method="post" name="submitform"> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">Configuration-Step 2- mvnForum Interface Configuration </tr> <tr class="trow1"> <td>max_private_message * <td> <input type="text" size="60" name="max_private_message" value="<%=conf.getString("mvnforumconfig.max_private_message", "")%>"> </td> </tr> <tr class="trow2"> <td>max_message_attachment_size * <td> <input type="text" size="60" name="max_message_attachment_size" value="<%=conf.getString("mvnforumconfig.max_message_attachment_size", "")%>"> </td> </tr> <tr class="trow1"> <td>max_attachment_size * <td>"> </tr> <tr class="trow2"> <td>max_favorite_thread * <td> <input type="text" size="60" name="max_favorite_thread" value="<%=conf.getString("mvnforumconfig.max_favorite_thread", "")%>"> </td> </tr> <tr class="trow1"> <td>max_edit_days * <td> <input type="text" size="60" name="max_edit_days" value="<%=conf.getString("mvnforumconfig.max_edit_days", "")%>"> </td> </tr> <tr class="trow2"> <td>max_attach_days * <td> <input type="text" size="60" name="max_attach_days" value="<%=conf.getString("mvnforumconfig.max_attach_days", "")%>"> </td> </tr> <tr class="trow1"> <td>max_delete_days * <td> <input type="text" size="60" name="max_delete_days" value="<%=conf.getString("mvnforumconfig.max_delete_days", "")%>"> </td> </tr> <tr class="trow2"> <td>rows_per_page * <td> <input type="text" size="60" name="rows_per_page" value="<%=conf.getString("mvnforumconfig.rows_per_page", "")%>"> </td> </tr> <tr class="trow1"> <td>rows_per_rss * <td> <input type="text" size="60" name="rows_per_rss" value="<%=conf.getString("mvnforumconfig.rows_per_rss", "")%>"> </td> </tr> <tr class="trow2"> <td>hot_topic_threshold * <td> <input type="text" size="60" name="hot_topic_threshold" value="<%=conf.getString("mvnforumconfig.hot_topic_threshold", "")%>"> </td> </tr> <tr class="trow1"> <td>max_posts_per_hour * <td> <input type="text" size="60" name="max_posts_per_hour" value="<%=conf.getString("mvnforumconfig.max_posts_per_hour", "")%>"> </td> </tr> <tr class="trow2"> <td>max_members_per_hour * <td> <input type="text" size="60" name="max_members_per_hour" value="<%=conf.getString("mvnforumconfig.max_members_per_hour", "")%>"> </td> </tr> <tr class="trow1"> <td>max_logins_per_hour * <td> <input type="text" size="60" name="max_logins_per_hour" value="<%=conf.getString("mvnforumconfig.max_logins_per_hour", "")%>"> </td> </tr> <tr class="trow2"> <td>max_messages_per_hour * <td> <input type="text" size="60" name="max_messages_per_hour" value="<%=conf.getString("mvnforumconfig.max_messages_per_hour", "")%>"> </td> </tr> <tr class="trow1"> <td>max_chars_in_short_summary * <td> <input type="text" size="60" name="max_chars_in_short_summary" value="<%=conf.getString("mvnforumconfig.max_chars_in_short_summary", "")%>"> </td> </tr> <tr class="trow2"> <td>max_chars_in_long_summary * <td> <input type="text" size="60" name="max_chars_in_long_summary" value="<%=conf.getString("mvnforumconfig.max_chars_in_long_summary", "")%>"> </td> </tr> <tr class="trow1"> <td>max_chars_in_rss * <td> <input type="text" size="60" name="max_chars_in_rss" value="<%=conf.getString("mvnforumconfig.max_chars_in_rss", "")%>"> </td> </tr> <tr class="trow2"> <td>enable_backup_on_server * <td> <select name="enable_backup_on_server"> <% String enable_backup_on_server = conf.getString("mvnforumconfig.enable_backup_on_server", ""); String[] arr = {"true", "false"}; for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_backup_on_server)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow1"> <td>max_import_size * <td> <input type="text" size="60" name="max_import_size" value="<%=conf.getString("mvnforumconfig.max_import_size", "")%>"> </td> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> <input type="button" name="submitbutton" value="Update Configuration" class="mainoption" onclick="javascript:SubmitForm();"> <input type="button" value="Cancel" class="liteoption" onclick="javascript:gotoPage('configindex');"> </td> </tr> </table> </form> <br/> </fmt:bundle> <%@ include file="footer.jsp"%> </body> </html>

What this is

This file is included in the DevDaily.com "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/configsteptwo.jsp,v 1.3 2005/01/20 10:31:34 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.3 $
 - $Date: 2005/01/20 10:31:34 $
 - ====================================================================
 - Copyright (C) 2002-2005 by MyVietnam.net
 - 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
 - http://www.mvnForum.com and http://www.MyVietnam.net 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:
 - http://www.mvnForum.com/mvnforum/index
 - Correspondence and Marketing Questions can be sent to:
 - info@MyVietnam.net
 - @author: Minh Nguyen  minhnn@MyVietnam.net
 - @author: Mai  Nguyen  mai.nh@MyVietnam.net
 - @author: Igor Manic   imanic@users.sourceforge.net
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="java.io.File" %>
<%@ page import="java.util.Locale" %>
<%@ page import="net.myvietnam.mvncore.util.FileUtil" %>
<%@ page import="net.myvietnam.mvncore.configuration.DOM4JConfiguration" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
  <title> - Config mvnForum - Step 2
<%@ 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.max_attachment_size, "max_attachment_size")) return false;
  if (!isUnsignedInteger(document.submitform.max_favorite_thread, "max_favorite_thread")) return false;
  if (!isUnsignedInteger(document.submitform.max_edit_days, "max_edit_days")) return false;
  if (!isUnsignedInteger(document.submitform.max_attach_days, "max_attach_days")) return false;
  if (!isUnsignedInteger(document.submitform.max_delete_days, "max_delete_days")) return false;
  if (!isUnsignedInteger(document.submitform.rows_per_page, "rows_per_page")) return false;
  if (!isUnsignedInteger(document.submitform.rows_per_rss, "rows_per_rss")) return false;
  if (!isUnsignedInteger(document.submitform.hot_topic_threshold, "hot_topic_threshold")) return false;
  if (!isUnsignedInteger(document.submitform.max_posts_per_hour, "max_posts_per_hour")) return false;
  if (!isUnsignedInteger(document.submitform.max_members_per_hour, "max_members_per_hour")) return false;
  if (!isUnsignedInteger(document.submitform.max_logins_per_hour, "max_logins_per_hour")) return false;
  if (isBlank(document.submitform.max_import_size, "max_import_size")) return false;
  return true;

<%@ include file="header.jsp"%>
  String strPathName = FileUtil.getServletClassesPath();
  String configFilename = strPathName + "mvnforum.xml";
  DOM4JConfiguration conf = new DOM4JConfiguration(new File(configFilename));

<table width="95%" align="center">
  <tr class="nav">

my book on functional programming


new blog posts


Copyright 1998-2019 Alvin Alexander, alvinalexander.com
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.