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 »  Config mvnForum </td> </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="pagedesc"> <td> In this page, you will see the current configuration parameter values. These parameters can be changed by click the links in each section (step) below. You can backup the configuration file by choose the task "Backup Configuration File" below. Normally, the changes only take effect when the Servlet Container is restarted. However, you can choose the task "Reload all Changes" below to reload it (currently only mvnforum.xml is reloaded, to reload mvncore.xml, you have to restart your Servlet container). <br/> Choose below tasks to continue:<br/> <%if ( permission.canAdminSystem() ) {%> <a href="configbackupprocess" class="command">Backup Configuration File
<%}%> <%if ( permission.canAdminSystem() ) {%> <a href="commitconfigs" class="command">Reload all Changes
<%}%> </td> </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">URL Prefixes </tr> <tr class="trow1"> <td width="30%">User URL Pattern * <td><%=conf.getString("usermoduleconfig.url_pattern", "")%> </tr> <tr class="trow2"> <td width="30%">Admin URL Pattern * <td><%=conf.getString("adminmoduleconfig.url_pattern", "")%> </tr> <tr class="trowfinal"> <td colspan="2" align="center">Config URL Patterns </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">Configuration Step 1 - mvnForum Core Configuration </tr> <tr class="trow1"> <td width="30%">mvnforum_home * <td><%=conf.getString("mvnforumconfig.mvnforum_home", "")%> </tr> <tr class="trow2"> <td width="30%">mvnforum_log * <td><%=conf.getString("mvnforumconfig.mvnforum_log", "")%> </tr> <tr class="trow1"> <td>webmaster_email * <td><%=conf.getString("mvnforumconfig.webmaster_email", "")%> </tr> <tr class="trow2"> <td>logo_url * <td><%=conf.getString("mvnforumconfig.logo_url", "")%> </tr> <tr class="trow1"> <td>supported_locales <td><%=conf.getString("mvnforumconfig.supported_locales", "")%> </tr> <tr class="trow2"> <td>default_locale_name * <td><%=conf.getString("mvnforumconfig.default_locale_name", "")%> </tr> <tr class="trow1"> <td>default_guest_name * <td><%=conf.getString("mvnforumconfig.default_guest_name", "")%> </tr> <tr class="trow2"> <td>default_guest_timezone * <td><%=conf.getString("mvnforumconfig.default_guest_timezone", "")%> </tr> <tr class="trow1"> <td>enable_passwordless_auth * <td><%=conf.getString("mvnforumconfig.enable_passwordless_auth", "")%> </tr> <tr class="trow2"> <td>enable_login_info_in_cookie * <td><%=conf.getString("mvnforumconfig.enable_login_info_in_cookie", "")%> </tr> <tr class="trow1"> <td>enable_login_info_in_session * <td><%=conf.getString("mvnforumconfig.enable_login_info_in_session", "")%> </tr> <tr class="trow2"> <td>enable_login_info_in_realm * <td><%=conf.getString("mvnforumconfig.enable_login_info_in_realm", "")%> </tr> <tr class="trow1"> <td>enable_login_info_in_customization * <td><%=conf.getString("mvnforumconfig.enable_login_info_in_customization", "")%> </tr> <tr class="trow2"> <td>require_activation * <td><%=conf.getString("mvnforumconfig.require_activation", "")%> </tr> <tr class="trow1"> <td>enable_login * <td><%=conf.getString("mvnforumconfig.enable_login", "")%> </tr> <tr class="trow2"> <td>enable_new_member * <td><%=conf.getString("mvnforumconfig.enable_new_member", "")%> </tr> <tr class="trow1"> <td>enable_new_post * <td><%=conf.getString("mvnforumconfig.enable_new_post", "")%> </tr> <tr class="trow2"> <td>enable_rss * <td><%=conf.getString("mvnforumconfig.enable_rss", "")%> </tr> <tr class="trow1"> <td>enable_watch * <td><%=conf.getString("mvnforumconfig.enable_watch", "")%> </tr> <tr class="trow2"> <td>enable_attachment * <td><%=conf.getString("mvnforumconfig.enable_attachment", "")%> </tr> <tr class="trow1"> <td>enable_avatar * <td><%=conf.getString("mvnforumconfig.enable_avatar", "")%> </tr> <tr class="trow2"> <td>enable_emoticon * <td><%=conf.getString("mvnforumconfig.enable_emoticon", "")%> </tr> <tr class="trow1"> <td>enable_captcha * <td><%=conf.getString("mvnforumconfig.enable_captcha", "")%> </tr> <tr class="trow2"> <td>enable_portal_like_index_page * <td><%=conf.getString("mvnforumconfig.enable_portal_like_index_page", "")%> </tr> <tr class="trow1"> <td>enable_message_attachment * <td><%=conf.getString("mvnforumconfig.enable_message_attachment", "")%> </tr> <tr class="trow2"> <td>enable_search * <td><%=conf.getString("mvnforumconfig.enable_search", "")%> </tr> <tr class="trow1"> <td>enable_online_users * <td><%=conf.getString("mvnforumconfig.enable_online_users", "")%> </tr> <tr class="trow2"> <td>enable_duplicate_onlineusers * <td><%=conf.getString("mvnforumconfig.enable_duplicate_onlineusers", "")%> </tr> <tr class="trow1"> <td>enable_invisible_users * <td><%=conf.getString("mvnforumconfig.enable_invisible_users", "")%> </tr> <tr class="trow2"> <td>enable_listmembers * <td><%=conf.getString("mvnforumconfig.enable_listmembers", "")%> </tr> <tr class="trow1"> <td>enable_show_last_login * <td><%=conf.getString("mvnforumconfig.enable_show_last_login", "")%> </tr> <tr class="trow2"> <td>enable_private_message * <td><%=conf.getString("mvnforumconfig.enable_private_message", "")%> </tr> <tr class="trow1"> <td>enable_public_message * <td><%=conf.getString("mvnforumconfig.enable_public_message", "")%> </tr> <tr class="trow2"> <td>enable_message_attachment * <td><%=conf.getString("mvnforumconfig.enable_message_attachment", "")%> </tr> <tr class="trow1"> <td>enable_most_active_threads * <td><%=conf.getString("mvnforumconfig.enable_most_active_threads", "")%> </tr> <tr class="trow2"> <td>enable_most_active_members * <td><%=conf.getString("mvnforumconfig.enable_most_active_members", "")%> </tr> <tr class="trow1"> <td>enable_site_statistics_overview * <td><%=conf.getString("mvnforumconfig.enable_site_statistics_overview", "")%> </tr> <tr class="trow2"> <td>enable_admin_can_change_password * <td><%=conf.getString("mvnforumconfig.enable_admin_can_change_password", "")%> </tr> <tr class="trow1"> <td>enable_guest_view_image_attachment * <td><%=conf.getString("mvnforumconfig.enable_guest_view_image_attachment", "")%> </tr> <tr class="trow2"> <td>default_watch_option * <td> <%=conf.getString("mvnforumconfig.default_watch_option", "")%> <% int default_watch_option = conf.getInt("mvnforumconfig.default_watch_option", 0); String str_default_watch_option = "Default (daily watch)"; if (default_watch_option == 1) { str_default_watch_option = "Live Watch"; } else if (default_watch_option == 2) { str_default_watch_option = "Hourly Watch"; } else if (default_watch_option == 3) { str_default_watch_option = "Daily Watch"; } else if (default_watch_option == 4) { str_default_watch_option = "Weekly Watch"; } %> : <%=str_default_watch_option%> </td> </tr> <tr class="trow1"> <td>default_moderation_option * <td> <%=conf.getString("mvnforumconfig.default_moderation_option", "")%> <% int default_moderation_option = conf.getInt("mvnforumconfig.default_moderation_option", 0); String str_default_moderation_option = "No Moderation"; if (default_moderation_option == 2) { str_default_moderation_option = "Thread and Post Moderation"; } else if (default_moderation_option == 3) { str_default_moderation_option = "Thread only Moderation"; } else if (default_moderation_option == 4) { str_default_moderation_option = "Post only Moderation"; } %> : <%=str_default_moderation_option%> </td> </tr> <tr class="theader"> <td colspan="2">Configuration Step 1 - Factory Configuration </tr> <tr class="trow1"> <td>member_implementation * <td><%=conf.getString("mvnforumfactoryconfig.member_implementation", "")%> </tr> <tr class="trow2"> <td>onlineuser_implementation * <td><%=conf.getString("mvnforumfactoryconfig.onlineuser_implementation", "")%> </tr> <tr class="trow1"> <td>authenticator_implementation <td><%=conf.getString("mvnforumfactoryconfig.authenticator_implementation", "")%> </tr> <tr class="trow2"> <td>requestprocessor_implementation * <td><%=conf.getString("mvnforumfactoryconfig.requestprocessor_implementation", "")%> </tr> <tr class="trow1"> <td>lucene_analyzer_implementation * <td><%=conf.getString("mvnforumfactoryconfig.lucene_analyzer_implementation", "")%> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> Modify Step 1 </tr> </table> <br/> <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><%=conf.getString("mvnforumconfig.max_private_message", "")%> </tr> <tr class="trow2"> <td>max_message_attachment_size * <td><%=conf.getString("mvnforumconfig.max_message_attachment_size", "")%> </tr> <tr class="trow1"> <td width="30%">max_attachment_size * <td><%=conf.getString("mvnforumconfig.max_attachment_size", "")%> </tr> <tr class="trow2"> <td>max_favorite_thread * <td><%=conf.getString("mvnforumconfig.max_favorite_thread", "")%> </tr> <tr class="trow1"> <td>max_edit_days * <td><%=conf.getString("mvnforumconfig.max_edit_days", "")%> </tr> <tr class="trow2"> <td>max_attach_days * <td><%=conf.getString("mvnforumconfig.max_attach_days", "")%> </tr> <tr class="trow1"> <td>max_delete_days * <td><%=conf.getString("mvnforumconfig.max_delete_days", "")%> </tr> <tr class="trow2"> <td>rows_per_page * <td><%=conf.getString("mvnforumconfig.rows_per_page", "")%> </tr> <tr class="trow1"> <td>rows_per_rss * <td><%=conf.getString("mvnforumconfig.rows_per_rss", "")%> </tr> <tr class="trow2"> <td>hot_topic_threshold * <td><%=conf.getString("mvnforumconfig.hot_topic_threshold", "")%> </tr> <tr class="trow1"> <td>max_posts_per_hour * <td><%=conf.getString("mvnforumconfig.max_posts_per_hour", "")%> </tr> <tr class="trow2"> <td>max_members_per_hour * <td><%=conf.getString("mvnforumconfig.max_members_per_hour", "")%> </tr> <tr class="trow1"> <td>max_logins_per_hour * <td><%=conf.getString("mvnforumconfig.max_logins_per_hour", "")%> </tr> <tr class="trow2"> <td>max_messages_per_hour * <td><%=conf.getString("mvnforumconfig.max_messages_per_hour", "")%> </tr> <tr class="trow1"> <td>max_chars_in_short_summary * <td><%=conf.getString("mvnforumconfig.max_chars_in_short_summary", "")%> </tr> <tr class="trow2"> <td>max_chars_in_long_summary * <td><%=conf.getString("mvnforumconfig.max_chars_in_long_summary", "")%> </tr> <tr class="trow1"> <td>max_chars_in_rss * <td><%=conf.getString("mvnforumconfig.max_chars_in_rss", "")%> </tr> <tr class="trow2"> <td>enable_backup_on_server * <td><%=conf.getString("mvnforumconfig.enable_backup_on_server", "")%> </tr> <tr class="trow1"> <td>max_import_size * <td><%=conf.getString("mvnforumconfig.max_import_size", "")%> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> Modify Step 2 </tr> </table> <br/> <% configFilename = strPathName + "mvncore.xml"; conf = new DOM4JConfiguration(new File(configFilename)); %> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">Configuration Step 3 - Database Configuration </tr> <tr class="trow1"> <td width="30%">use_datasource * <td><%=conf.getString("dboptions.use_datasource", "")%> </tr> <tr class="trow2"> <td>database_type * <td><%=conf.getString("dboptions.database_type", "")%> </tr> <tr class="trow1"> <td>driver_class_name * <td><%=conf.getString("dboptions.driver_class_name", "")%> </tr> <tr class="trow2"> <td>database_url * <td><%=conf.getString("dboptions.database_url", "")%> </tr> <tr class="trow1"> <td>database_user * <td><%=conf.getString("dboptions.database_user", "")%> </tr> <tr class="trow2"> <td>database_password * <td><%=StringUtil.getHiddenPassword(conf.getString("dboptions.database_password", ""))%> </tr> <tr class="trow1"> <td>max_connection * <td><%=conf.getString("dboptions.max_connection", "")%> </tr> <tr class="trow2"> <td>max_time_to_wait * <td><%=conf.getString("dboptions.max_time_to_wait", "")%> </tr> <tr class="trow1"> <td>minutes_between_refresh * <td><%=conf.getString("dboptions.minutes_between_refresh", "")%> </tr> <tr class="trow2"> <td>datasource_name * <td><%=conf.getString("dboptions.datasource_name", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - Mail Options </tr> <tr class="trow1"> <td>mail_server * <td><%=conf.getString("mailoptions.mail_server", "")%> </tr> <tr class="trow2"> <td>default_mail_from * <td><%=conf.getString("mailoptions.default_mail_from", "")%> </tr> <tr class="trow1"> <td>username <td><%=conf.getString("mailoptions.username", "")%> </tr> <tr class="trow2"> <td>password <td><%=StringUtil.getHiddenPassword(conf.getString("mailoptions.password", ""))%> </tr> <tr class="trow1"> <td>port * <td><%=conf.getString("mailoptions.port", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - Param Options </tr> <tr class="trow1"> <td>context_path <td><%=conf.getString("paramoptions.context_path", "")%> </tr> <tr class="trow2"> <td>server_path * <td><%=conf.getString("paramoptions.server_path", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - Date Options </tr> <tr class="trow1"> <td>server_hour_offset * <td><%=conf.getString("dateoptions.server_hour_offset", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - User Agent Options </tr> <tr class="trow1"> <td>blocked_user_agent <td><%=conf.getString("useragentoptions.blocked_user_agent", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - IP Options </tr> <tr class="trow1"> <td>blocked_ip <td><%=conf.getString("ipoptions.blocked_ip", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - Core Options </tr> <tr class="trow1"> <td>enable_link_nofollow * <td><%=conf.getString("mvncoreconfig.enable_link_nofollow", "")%> </tr> <tr class="theader"> <td colspan="2">Configuration Step 3 - Interceptor Options </tr> <tr class="trow1"> <td>mailinterceptor_implementation <td><%=conf.getString("interceptor.mailinterceptor_implementation", "")%> </tr> <tr class="trow2"> <td>contentinterceptor_implementation <td><%=conf.getString("interceptor.contentinterceptor_implementation", "")%> </tr> <tr class="trow1"> <td>loginidinterceptor_implementation <td><%=conf.getString("interceptor.loginidinterceptor_implementation", "")%> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> Modify Step 3 </tr> </table> <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/configindex.jsp,v 1.29 2005/02/01 19:19:22 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.29 $
 - $Date: 2005/02/01 19:19:22 $
 -
 - ====================================================================
 -
 - 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
 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 - 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.util.StringUtil" %>
<%@ 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">
<html>
<head>
  <title> - Config mvnForum
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">

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

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


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.