Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/FileUtils.java
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/Attic/FileUtils.java,v
diff -u -r1.1 -r1.2
--- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/FileUtils.java 17 Jun 2005 05:29:16 -0000 1.1
+++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/FileUtils.java 29 Jun 2005 06:33:15 -0000 1.2
@@ -1,8 +1,6 @@
package org.lamsfoundation.lams.tool.forum.util;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.File;
+import java.io.*;
/**
* Created by IntelliJ IDEA.
@@ -25,6 +23,22 @@
return util;
}
+ public static File getFile(String fileName, InputStream is) throws FileNotFoundException, Exception {
+ InputStream in = new BufferedInputStream(is, 500);
+ File file = new File(fileName);
+ OutputStream out = new BufferedOutputStream(new FileOutputStream(file), 500);
+ int bytes;
+ while ((bytes = in.available()) > 0) {
+ byte[] byteArray = new byte[bytes];
+ in.read(byteArray);
+ out.write(byteArray);
+ }
+ in.close();
+ out.close();
+ out.flush();
+ return file;
+ }
+
public static byte[] getBytes(File file) throws FileNotFoundException, Exception {
byte[] byteArray = new byte[(int) file.length()];
FileInputStream stream = new FileInputStream(file);
Index: lams_tool_forum/web/WEB-INF/classes/ApplicationResources.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/classes/Attic/ApplicationResources.properties,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_forum/web/WEB-INF/classes/ApplicationResources.properties 29 Jun 2005 06:37:55 -0000 1.1
@@ -0,0 +1,61 @@
+appName = forum
+
+## errors
+errors.header=
+errors.footer=
+
+#error.title = System Error!
+error.valueReqd = Value Required
+error.inputFileTooLarge = Input File size is too large!
+error.uploading = error uploading
+
+#General Messages
+message.msg.maxFileSize = Max 250K
+
+## Forum
+
+title.forum.add = Add Forum
+title.forum.edit = Edit Forum
+title.forum.open = Open Forum
+title.forum.delete = Delete Forum
+
+forum.label.title = Tile
+forum.label.instructions = Instructions
+forum.label.onlineInstructions = Online Instructions
+forum.label.offlineInstructions = Offline Instructions
+forum.label.onlineFile = Online Attachments
+forum.label.offlineFile = Offline Attachments
+forum.label.lockWhenFinished = Lock When Finished
+forum.label.forceOffline = Force Offline
+forum.label.allowAnnomity = Allow Annomity
+forum.attachment.label.delete = Delete Attachment
+forum.topic.label.delete = Delete Topic
+forum.link.createTopic = New Topic
+
+##Topic
+topic.label.subject = Topic:
+
+##Message
+title.messageTopic.open = Topic Details
+
+
+title.message.add = Add Message
+title.message.open = View Message
+title.message.reply = Reply Message
+message.label.subject = Subject
+message.label.body = Body
+message.label.postedOn = Posted On:
+message.label.threadReplies = Thread Replies
+message.link.reply = Reply
+
+
+##Labels
+label.open = Open
+label.delete = Delete
+
+##Buttons
+button.upload = upload
+button.done = done
+button.submit = submit
+
+
Index: lams_tool_forum/web/WEB-INF/classes/displaytag.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/classes/Attic/displaytag.properties,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_forum/web/WEB-INF/classes/displaytag.properties 29 Jun 2005 06:37:55 -0000 1.1
@@ -0,0 +1 @@
+basic.msg.empty_list= nothing found to display
\ No newline at end of file
Index: lams_tool_forum/web/WEB-INF/classes/jmage.xml
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/classes/Attic/jmage.xml,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_forum/web/WEB-INF/classes/jmage.xml 29 Jun 2005 06:37:55 -0000 1.1
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: lams_tool_forum/web/WEB-INF/classes/log4j.properties
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/classes/Attic/log4j.properties,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_tool_forum/web/WEB-INF/classes/log4j.properties 29 Jun 2005 06:37:55 -0000 1.1
@@ -0,0 +1,47 @@
+#####################################################
+# LOGGING LEVELS
+#####################################################
+
+log4j.rootLogger=INFO, console
+
+#####################################################
+# LOG FILE LOCATIONS
+#####################################################
+
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.Threshold=DEBUG
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern= %d %p [%c{4}] %m%n
+
+#####################################################
+# CLASS-SPECIFIC LOGGING LEVELS
+#####################################################
+
+log4j.category.org.lamsfoundation.lams.tool.forum.actions = DEBUG, console
+log4j.additivity.org.lamsfoundation.lams.tool.forum.actions = false
+
+log4j.category.org.lamsfoundation.lams.tool.forum.service = DEBUG, console
+log4j.additivity.org.lamsfoundation.lams.tool.forum.service = false
+
+log4j.additivity.org.jmage = false
+
+log4j.category.net.sf.hibernate = WARN, console
+log4j.additivity.net.sf.hibernate = false
+log4j.category.sf.hibernate = WARN, console
+log4j.additivity.sf.hibernate = false
+
+log4j.category.beans.factory = WARN, console
+log4j.additivity.beans.factory = false
+
+log4j.category.springframework = WARN, console
+log4j.additivity.springframework = false
+
+log4j.category.org.springframework = WARN, console
+log4j.additivity.org.springframework = false
+
+
+log4j.category.org.displaytag = WARN, console
+log4j.additivity.org.displaytag = false
+
+log4j.category.org.displaytag.export.ExportViewFactory = ERROR, console
+log4j.category.org.displaytag.export.ExportViewFactory = false