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 1 </td> </tr> </table> <br/> <form action="configsteponeprocess" method="post" name="submitform"> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2">Configuration Step 1 - mvnForum Config </tr> <tr class="trow1"> <td>mvnforum_home * <td> <input type="text" size="60" name="mvnforum_home" value="<%=conf.getString("mvnforumconfig.mvnforum_home", "")%>"> <br/>Suggestion: <%= request.getRealPath("/WEB-INF/mvnForumHome") %> </td> </tr> <tr class="trow2"> <td>mvnforum_log * <td> <input type="text" size="60" name="mvnforum_log" value="<%=conf.getString("mvnforumconfig.mvnforum_log", "")%>"> <br/>Suggestion: <%= request.getRealPath("/WEB-INF/mvnForumHome/log/mvnforum.log") %> </td> </tr> <tr class="trow1"> <td>webmaster_email * <td>"> </tr> <tr class="trow2"> <td>logo_url * <td>"> </tr> <tr class="trow1"> <td>supported_locales <td>"> </tr> <tr class="trow2"> <td>default_locale_name * <td>"> </tr> <tr class="trow1"> <td>default_guest_name * <td>"> </tr> <tr class="trow2"> <td>default_guest_timezone * <td>"> </tr> <tr class="trow1"> <td>enable_passwordless_auth * <td> <select name="enable_passwordless_auth"> <% String enable_passwordless_auth = conf.getString("mvnforumconfig.enable_passwordless_auth", ""); String[] arr = {"true", "false"}; for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_passwordless_auth)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow2"> <td>enable_login_info_in_cookie * <td> <select name="enable_login_info_in_cookie"> <% String enable_login_info_in_cookie = conf.getString("mvnforumconfig.enable_login_info_in_cookie", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_login_info_in_cookie)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow1"> <td>enable_login_info_in_session * <td> <select name="enable_login_info_in_session"> <% String enable_login_info_in_session = conf.getString("mvnforumconfig.enable_login_info_in_session", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_login_info_in_session)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow2"> <td>enable_login_info_in_realm * <td> <select name="enable_login_info_in_realm"> <% String enable_login_info_in_realm = conf.getString("mvnforumconfig.enable_login_info_in_realm", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_login_info_in_realm)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow1"> <td>enable_login_info_in_customization * <td> <select name="enable_login_info_in_customization"> <% String enable_login_info_in_customization = conf.getString("mvnforumconfig.enable_login_info_in_customization", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_login_info_in_customization)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow2"> <td>require_activation * <td> <select name="require_activation"> <% String require_activation = conf.getString("mvnforumconfig.require_activation", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(require_activation)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow1"> <td>enable_login * <td> <select name="enable_login"> <% String enable_login = conf.getString("mvnforumconfig.enable_login", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_login)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow2"> <td>enable_new_member * <td> <select name="enable_new_member"> <% String enable_new_member = conf.getString("mvnforumconfig.enable_new_member", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_new_member)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow1"> <td>enable_new_post * <td> <select name="enable_new_post"> <% String enable_new_post = conf.getString("mvnforumconfig.enable_new_post", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_new_post)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow2"> <td>enable_rss * <td> <select name="enable_rss"> <% String enable_rss = conf.getString("mvnforumconfig.enable_rss", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_rss)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </tr> <tr class="trow1"> <td>enable_watch * <td> <select name="enable_watch"> <% String enable_watch = conf.getString("mvnforumconfig.enable_watch", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_watch)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow2"> <td>enable_attachment * <td> <select name="enable_attachment"> <% String enable_attachment = conf.getString("mvnforumconfig.enable_attachment", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_attachment)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow1"> <td>enable_avatar * <td> <select name="enable_avatar"> <% String enable_avatar = conf.getString("mvnforumconfig.enable_avatar", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_avatar)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow2"> <td>enable_emoticon * <td> <select name="enable_emoticon"> <% String enable_emoticon = conf.getString("mvnforumconfig.enable_emoticon", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_emoticon)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow1"> <td>enable_captcha * <td> <select name="enable_captcha"> <% String enable_captcha = conf.getString("mvnforumconfig.enable_captcha", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_captcha)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow2"> <td>enable_portal_like_index_page * <td> <select name="enable_portal_like_index_page"> <% String enable_portal_like_index_page = conf.getString("mvnforumconfig.enable_portal_like_index_page", ""); for (int i = 0; i < arr.length; i++) { if (arr[i].equals(enable_portal_like_index_page)) { %> <option value=<%=arr[i]%> selected><%=arr[i]%> <%} else { %> <option value=<%=arr[i]%>><%=arr[i]%> <%} } %> </select> </td> </tr> <tr class="trow1"> <td>enable_search * <td> <select name="enable_search"> <% String enable_search = conf.getString("mvnforumconfig.enable_search", "");%> <option value="true" <%if ( "true".equals(enable_search) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_search) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_online_users * <td> <select name="enable_online_users"> <% String enable_online_users = conf.getString("mvnforumconfig.enable_online_users", "");%> <option value="true" <%if ( "true".equals(enable_online_users) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_online_users) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_duplicate_onlineusers * <td> <select name="enable_duplicate_onlineusers"> <% String enable_duplicate_onlineusers = conf.getString("mvnforumconfig.enable_duplicate_onlineusers", "");%> <option value="true" <%if ( "true".equals(enable_duplicate_onlineusers) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_duplicate_onlineusers) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_invisible_users * <td> <select name="enable_invisible_users"> <% String enable_invisible_users = conf.getString("mvnforumconfig.enable_invisible_users", "");%> <option value="true" <%if ( "true".equals(enable_invisible_users) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_invisible_users) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_listmembers * <td> <select name="enable_listmembers"> <% String enable_listmembers = conf.getString("mvnforumconfig.enable_listmembers", "");%> <option value="true" <%if ( "true".equals(enable_listmembers) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_listmembers) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_show_last_login * <td> <select name="enable_show_last_login"> <% String enable_show_last_login = conf.getString("mvnforumconfig.enable_show_last_login", "");%> <option value="true" <%if ( "true".equals(enable_show_last_login) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_show_last_login) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_private_message * <td> <select name="enable_private_message"> <% String enable_private_message = conf.getString("mvnforumconfig.enable_private_message", "");%> <option value="true" <%if ( "true".equals(enable_private_message) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_private_message) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_public_message * <td> <select name="enable_public_message"> <% String enable_public_message = conf.getString("mvnforumconfig.enable_public_message", "");%> <option value="true" <%if ( "true".equals(enable_public_message) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_public_message) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_message_attachment * <td> <select name="enable_message_attachment"> <% String enable_message_attachment = conf.getString("mvnforumconfig.enable_message_attachment", "");%> <option value="true" <%if ( "true".equals(enable_message_attachment) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_message_attachment) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_most_active_threads * <td> <select name="enable_most_active_threads"> <% String enable_most_active_threads = conf.getString("mvnforumconfig.enable_most_active_threads", "");%> <option value="true" <%if ( "true".equals(enable_most_active_threads) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_most_active_threads) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_most_active_members * <td> <select name="enable_most_active_members"> <% String enable_most_active_members = conf.getString("mvnforumconfig.enable_most_active_members", "");%> <option value="true" <%if ( "true".equals(enable_most_active_members) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_most_active_members) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_site_statistics_overview * <td> <select name="enable_site_statistics_overview"> <% String enable_site_statistics_overview = conf.getString("mvnforumconfig.enable_site_statistics_overview", "");%> <option value="true" <%if ( "true".equals(enable_site_statistics_overview) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_site_statistics_overview) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>enable_admin_can_change_password * <td> <select name="enable_admin_can_change_password"> <% String enable_admin_can_change_password = conf.getString("mvnforumconfig.enable_admin_can_change_password", "");%> <option value="true" <%if ( "true".equals(enable_admin_can_change_password) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_admin_can_change_password) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow2"> <td>enable_guest_view_image_attachment * <td> <select name="enable_guest_view_image_attachment"> <% String enable_guest_view_image_attachment = conf.getString("mvnforumconfig.enable_guest_view_image_attachment", "");%> <option value="true" <%if ( "true".equals(enable_guest_view_image_attachment) ) { %> selected <% } %> >true <option value="false" <%if ( "false".equals(enable_guest_view_image_attachment) ) { %> selected <% } %>>false </select> </td> </tr> <tr class="trow1"> <td>default_watch_option * <td> <select name="default_watch_option"> <% String default_watch_option = conf.getString("mvnforumconfig.default_watch_option", "");%> <option value=0 <%= (default_watch_option.equals("0")) ? "selected" : "" %>>Default (daily watch) <option value=1 <%= (default_watch_option.equals("1")) ? "selected" : "" %>>Live Watch <option value=2 <%= (default_watch_option.equals("2")) ? "selected" : "" %>>Hourly Watch <option value=3 <%= (default_watch_option.equals("3")) ? "selected" : "" %>>Daily Watch <option value=4 <%= (default_watch_option.equals("4")) ? "selected" : "" %>>Weekly Watch </select> </td> </tr> <tr class="trow2"> <td>default_moderation_option * <td> <select name="default_moderation_option"> <% String default_moderation_option = conf.getString("mvnforumconfig.default_moderation_option", "");%> <option value=0 <%= (default_moderation_option.equals("0")) ? "selected" : "" %>>No Moderation <option value=2 <%= (default_moderation_option.equals("2")) ? "selected" : "" %>>Thread and Post Moderation <option value=3 <%= (default_moderation_option.equals("3")) ? "selected" : "" %>>Thread only Moderation <option value=4 <%= (default_moderation_option.equals("4")) ? "selected" : "" %>>Post only Moderation </select> </td> </tr> <tr class="theader"> <td colspan="2">Configuration Step 1 - Factory Config </tr> <tr class="trow1"> <td>member_implementation * <td> <input type="text" size="60" name="member_implementation" value="<%=conf.getString("mvnforumfactoryconfig.member_implementation", "")%>"> </td> </tr> <tr class="trow2"> <td>onlineuser_implementation * <td> <input type="text" size="60" name="onlineuser_implementation" value="<%=conf.getString("mvnforumfactoryconfig.onlineuser_implementation", "")%>"> </td> </tr> <tr class="trow1"> <td>authenticator_implementation <td> <input type="text" size="60" name="authenticator_implementation" value="<%=conf.getString("mvnforumfactoryconfig.authenticator_implementation", "")%>"> </td> </tr> <tr class="trow2"> <td>requestprocessor_implementation * <td> <input type="text" size="60" name="requestprocessor_implementation" value="<%=conf.getString("mvnforumfactoryconfig.requestprocessor_implementation", "")%>"> </td> </tr> <tr class="trow1"> <td>lucene_analyzer_implementation * <td> <input type="text" size="60" name="lucene_analyzer_implementation" value="<%=conf.getString("mvnforumfactoryconfig.lucene_analyzer_implementation", "")%>"> </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/configstepone.jsp,v 1.5 2005/01/20 10:31:34 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.5 $
 - $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
 - 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.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 - Step 1
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>

<script type="text/javascript">

function SubmitForm() {
  if (ValidateForm() == true ) {
    document.submitform.submitbutton.disabled=true;
    document.submitform.submit();
  }
}

function ValidateForm() {
  if (isBlank(document.submitform.mvnforum_home, "mvnforum_home")) return false;
  if (isBlank(document.submitform.webmaster_email, "webmaster_email")) return false;
  if (!isEmail(document.submitform.webmaster_email, "websmater_email")) return false;
  if (isBlank(document.submitform.logo_url, "logo_url")) return false;
  //if (isBlank(document.submitform.supported_locales, "mvnforum.admin.config.supported_locales")) return false;
  if (isBlank(document.submitform.default_locale_name, "default_locale_name")) return false;
  if (isBlank(document.submitform.default_guest_name, "default_guest_name")) return false;
  if (isBlank(document.submitform.member_implementation, "member_implementation")) return false;
  if (isBlank(document.submitform.onlineuser_implementation, "onlineuser_implementation")) return false;
  if (isBlank(document.submitform.requestprocessor_implementation, "requestprocessor_implementation")) return false;
  if (isBlank(document.submitform.lucene_analyzer_implementation, "lucene_analyzer_implementation")) return false;
  return true;
}
</script>

<%@ 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.