From 8358e5645e55b82cffd7f1ca4adb8b25423e812e Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Sun, 25 Nov 2001 20:54:05 +0000 Subject: [PATCH] minor change to community creation error message & to some documentation --- lib/README.lib | 24 +++++++++++++++++-- .../venice/servlets/CommunityOperations.java | 8 ++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/lib/README.lib b/lib/README.lib index 8771ef0..a0b8cd4 100644 --- a/lib/README.lib +++ b/lib/README.lib @@ -1,2 +1,22 @@ -When you download the MySQL JDBC driver, put the "mysql.jar" file in this -directory. Also put the Apache Jakarta LOG4J "log4j.jar" file here. +LIBRARY REQUIREMENTS FOR VENICE +=============================== + +N.B.: Any later versions of the libraries given here should work OK as long as they are backward +compatible with the versions specified here. + +Library Version File Name(s) Install To +------------------------------------------------------------------------------------------------- +Apache LOG4J 1.1.3 log4j.jar Venice "lib" subdirectory +Java Activation Framework 1.0.1 activation.jar JRE "ext" subdirectory +Java Advanced Imaging API 1.1.1 jai_core.jar, jai_codec.jar, JRE "ext" subdirectory + mlibwrapper_jai.jar +Java API for XML Parsing 1.1 jaxp.jar, crimson.jar, xalan.jar JRE "ext" subdirectory +JavaMail 1.2 imap.jar, mailapi.jar, mail.jar, JRE "ext" subdirectory + pop3.jar, smtp.jar +Java Secure Socket Extensions 1.0.2 jcert.jar, jnet.jar, jsse.jar JRE "ext" subdirectory +MySQL JDBC Driver 2.0.2 mysql.jar Venice "lib" subdirectory + +NOTES +===== +JAI 1.1.1: Place the accompanying .so file in /usr/local/lib or some other path suitable for shared +libraries. If it can't be loaded, the JAI calls will still work. diff --git a/src/com/silverwrist/venice/servlets/CommunityOperations.java b/src/com/silverwrist/venice/servlets/CommunityOperations.java index 6a319ce..f801b89 100644 --- a/src/com/silverwrist/venice/servlets/CommunityOperations.java +++ b/src/com/silverwrist/venice/servlets/CommunityOperations.java @@ -307,7 +307,13 @@ public class CommunityOperations extends VeniceServlet if (cmd.equals("C")) { // "C" = Create New Community if (!(user.canCreateCommunity())) - return new ErrorBox("Community Error","You are not permitted to create communities.","top"); + { // EJB 11/25/2001 - give a different error message if they're not logged in + if (user.isLoggedIn()) + return new ErrorBox("Community Error","You are not permitted to create communities.","top"); + else + return new ErrorBox("Community Error","You must be logged in to create a new community.","top"); + + } // end if // load the "Create Communities" dialog CreateCommunityDialog dlg = makeCreateCommunityDialog();