Index: lams_tool_forum/.classpath =================================================================== diff -u -rb1ef965ad3a0cd4ea7bb807bd313d1f0cf68d1e7 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/.classpath (.../.classpath) (revision b1ef965ad3a0cd4ea7bb807bd313d1f0cf68d1e7) +++ lams_tool_forum/.classpath (.../.classpath) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,6 +1,6 @@ - + Index: lams_tool_forum/.project =================================================================== diff -u -rafa9a1cbc332a29b3f6c18d885c4c119cc233d25 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/.project (.../.project) (revision afa9a1cbc332a29b3f6c18d885c4c119cc233d25) +++ lams_tool_forum/.project (.../.project) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -40,4 +40,11 @@ com.genuitec.eclipse.j2eedt.core.webnature org.eclipse.jdt.core.javanature + + + JBOSS4-Forum + 2 + D:/jboss-4.0.2/server/default/deploy/lams.ear/lams-tool-lafrum11.war/WEB-INF/classes + + Index: lams_tool_forum/build.xml =================================================================== diff -u -rc109ffd9f84d13dabeeb31bafe8484c0f3a26b40 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/build.xml (.../build.xml) (revision c109ffd9f84d13dabeeb31bafe8484c0f3a26b40) +++ lams_tool_forum/build.xml (.../build.xml) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -285,7 +285,7 @@ - +------------------------------------------+ Index: lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -rc109ffd9f84d13dabeeb31bafe8484c0f3a26b40 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision c109ffd9f84d13dabeeb31bafe8484c0f3a26b40) +++ lams_tool_forum/conf/hibernate/mappings/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -147,6 +147,7 @@ update="true" insert="true" column="content_id" + unique="true" /> + + + + + + - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - + parameter="newTopic"> + - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - + + + - - - + parameter="openForum" scope="request"> + - - - + parameter="openTopic" scope="request"> + - - - + parameter="getMessage" scope="request"> + - - - + + + - - - + name="messageForm" validate="true" input="tiles:/learning/message/post" + parameter="reply" scope="request"> + - - - + - - - + parameter="deleteMessage" scope="request"> + - - + + + + + + + + + Index: lams_tool_forum/db/sql/create_lams_tool_forum.sql =================================================================== diff -u -rd21a020d917869e77f133713f28b8e6c70ad08d5 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision d21a020d917869e77f133713f28b8e6c70ad08d5) +++ lams_tool_forum/db/sql/create_lams_tool_forum.sql (.../create_lams_tool_forum.sql) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,39 +1,67 @@ +SET FOREIGN_KEY_CHECKS=0; create table tl_lafrum11_attachment ( - UUID bigint not null auto_increment, - VERSION bigint, + uid bigint not null auto_increment, + version_id bigint, type varchar(255), - NAME varchar(255), - forum bigint, - primary key (UUID) + file_name varchar(255), + uuid bigint, + forum_uid bigint, + message_uid bigint, + primary key (uid) ); create table tl_lafrum11_forum ( - UUID bigint not null auto_increment, - CREATED datetime, - UPDATED datetime, - CREATEDBY bigint, - TITLE varchar(255), - ALLOWANNOMITY bit, - FORCEOFFLINE bit, - LOCKWHENFINISHED bit, - INSTRUCTIONS varchar(255), - ONLINEINSTRUCTIONS varchar(255), - OFFLINEINSTRUCTIONS varchar(255), - primary key (UUID) + uid bigint not null auto_increment, + create_date datetime, + update_date datetime, + create_by bigint, + title varchar(255), + allow_anonym bit, + run_offline bit, + lock_on_finished bit, + instructions varchar(255), + online_instructions varchar(255), + offline_instructions varchar(255), + content_in_use bit, + define_later bit, + content_id bigint, + primary key (uid) ); +create table tl_lafrum11_forum_user ( + uid bigint not null auto_increment, + user_id bigint, + status bit, + full_name varchar(255), + user_name varchar(255), + primary key (uid) +); create table tl_lafrum11_message ( - UUID bigint not null auto_increment, - CREATED datetime, - UPDATED datetime, - CREATEDBY bigint, - MODIFIEDBY bigint, - SUBJECT varchar(255), - BODY text, - ISAUTHORED bit, - ISANNONYMOUS bit, - FORUM bigint, - parent bigint, - primary key (UUID) + uid bigint not null auto_increment, + create_date datetime, + update_date datetime, + create_by bigint, + modified_by bigint, + subject varchar(255), + body text, + is_authored bit, + is_anonymous bit, + forum_session_uid bigint, + user_uid bigint, + parent_uid bigint, + primary key (uid) ); -alter table tl_lafrum11_attachment add index FK389AD9A29EAD680D (forum), add constraint FK389AD9A29EAD680D foreign key (forum) references tl_lafrum11_forum (UUID); -alter table tl_lafrum11_message add index FK4A6067E8F7440FBC (parent), add constraint FK4A6067E8F7440FBC foreign key (parent) references tl_lafrum11_message (UUID); -alter table tl_lafrum11_message add index FK4A6067E89EAD680D (FORUM), add constraint FK4A6067E89EAD680D foreign key (FORUM) references tl_lafrum11_forum (UUID); +create table tl_lafrum11_tool_session ( + uid bigint not null auto_increment, + session_end_date datetime, + session_start_date datetime, + status integer, + forum_uid bigint, + session_id bigint, + primary key (uid) +); +alter table tl_lafrum11_attachment add index FK389AD9A2FE939F2A (message_uid), add constraint FK389AD9A2FE939F2A foreign key (message_uid) references tl_lafrum11_message (uid); +alter table tl_lafrum11_attachment add index FK389AD9A2131CE31E (forum_uid), add constraint FK389AD9A2131CE31E foreign key (forum_uid) references tl_lafrum11_forum (uid); +alter table tl_lafrum11_message add index FK4A6067E824089E4D (parent_uid), add constraint FK4A6067E824089E4D foreign key (parent_uid) references tl_lafrum11_message (uid); +alter table tl_lafrum11_message add index FK4A6067E8C6FF3C72 (forum_session_uid), add constraint FK4A6067E8C6FF3C72 foreign key (forum_session_uid) references tl_lafrum11_tool_session (uid); +alter table tl_lafrum11_message add index FK4A6067E8B0A7E6B3 (user_uid), add constraint FK4A6067E8B0A7E6B3 foreign key (user_uid) references tl_lafrum11_forum_user (uid); +alter table tl_lafrum11_tool_session add index FK5A04D7AE131CE31E (forum_uid), add constraint FK5A04D7AE131CE31E foreign key (forum_uid) references tl_lafrum11_forum (uid); +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file Index: lams_tool_forum/db/sql/drop_lams_tool_forum.sql =================================================================== diff -u -rd21a020d917869e77f133713f28b8e6c70ad08d5 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/db/sql/drop_lams_tool_forum.sql (.../drop_lams_tool_forum.sql) (revision d21a020d917869e77f133713f28b8e6c70ad08d5) +++ lams_tool_forum/db/sql/drop_lams_tool_forum.sql (.../drop_lams_tool_forum.sql) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,7 +1,9 @@ SET FOREIGN_KEY_CHECKS=0; drop table if exists tl_lafrum11_attachment; drop table if exists tl_lafrum11_forum; +drop table if exists tl_lafrum11_forum_user; drop table if exists tl_lafrum11_message; +drop table if exists tl_lafrum11_tool_session; SET FOREIGN_KEY_CHECKS=1; Index: lams_tool_forum/db/sql/table-schema.sql =================================================================== diff -u -rc109ffd9f84d13dabeeb31bafe8484c0f3a26b40 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/db/sql/table-schema.sql (.../table-schema.sql) (revision c109ffd9f84d13dabeeb31bafe8484c0f3a26b40) +++ lams_tool_forum/db/sql/table-schema.sql (.../table-schema.sql) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -33,7 +33,7 @@ offline_instructions varchar(255), content_in_use bit, define_later bit, - content_id bigint, + content_id bigint unique, primary key (uid) ); create table tl_lafrum11_forum_user ( Index: lams_tool_forum/src/java/forumApplicationContext.xml =================================================================== diff -u -ree36bb343b77214b9bffd9a8e47dd9e8caa25813 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/src/java/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision ee36bb343b77214b9bffd9a8e47dd9e8caa25813) +++ lams_tool_forum/src/java/forumApplicationContext.xml (.../forumApplicationContext.xml) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -13,6 +13,8 @@ org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Message.hbm.xml org/lamsfoundation/lams/tool/forum/persistence/Attachment.hbm.xml + org/lamsfoundation/lams/tool/forum/persistence/ForumUser.hbm.xml + org/lamsfoundation/lams/tool/forum/persistence/ToolSession.hbm.xml @@ -42,7 +44,7 @@ - + Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/core/PersistenceException.java =================================================================== diff -u -rfc0b50d6cdbbad54f921d29b0c6afff0388d2eec -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/core/PersistenceException.java (.../PersistenceException.java) (revision fc0b50d6cdbbad54f921d29b0c6afff0388d2eec) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/core/PersistenceException.java (.../PersistenceException.java) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,15 +1,15 @@ package org.lamsfoundation.lams.tool.forum.core; /** - * Created by IntelliJ IDEA. * User: conradb * Date: 6/06/2005 * Time: 10:51:43 - * To change this template use File | Settings | File Templates. */ -public class PersistenceException extends Exception { +public class PersistenceException extends RuntimeException { - public PersistenceException(String message) { + private static final long serialVersionUID = 3903937111808861090L; + + public PersistenceException(String message) { super(message); } Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml =================================================================== diff -u -rc109ffd9f84d13dabeeb31bafe8484c0f3a26b40 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision c109ffd9f84d13dabeeb31bafe8484c0f3a26b40) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Forum.hbm.xml (.../Forum.hbm.xml) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -147,6 +147,7 @@ update="true" insert="true" column="content_id" + unique="true" /> - + - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + parameter="newTopic"> + - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + parameter="openForum" scope="request"> + - - - + parameter="openTopic" scope="request"> + - - - + parameter="getMessage" scope="request"> + - - - + + - - - + name="messageForm" validate="true" input="tiles:/learning/message/post" + parameter="reply" scope="request"> + - - - + - - - + parameter="deleteMessage" scope="request"> + + + + + Index: lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml =================================================================== diff -u -r4296cc24afab0a22b2075656b93b7bad7578e32f -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 4296cc24afab0a22b2075656b93b7bad7578e32f) +++ lams_tool_forum/web/WEB-INF/struts/tiles-defs.xml (.../tiles-defs.xml) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -15,28 +15,17 @@ at the top of the page --> - - - - - - - - - - - - - - - - + + + + + @@ -83,12 +72,7 @@ - - - - - Index: lams_tool_forum/web/includes/header.jsp =================================================================== diff -u -rffbc47494b72d5222b6fc95db0347f7732d93310 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision ffbc47494b72d5222b6fc95db0347f7732d93310) +++ lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,19 +1,11 @@ <%@ include file="/includes/taglibs.jsp" %> <% -String protocol = request.getProtocol(); -if(protocol.startsWith("HTTPS")){ - protocol = "https://"; -}else{ - protocol = "http://"; -} -String pathToRoot = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; -String pathToShare = protocol+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/../../../.."; + String LAMS_WEB_ROOT="/lams"; %> <bean:message key="appName" /> - - - + + Index: lams_tool_forum/web/includes/layout.jsp =================================================================== diff -u -r4296cc24afab0a22b2075656b93b7bad7578e32f -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/includes/layout.jsp (.../layout.jsp) (revision 4296cc24afab0a22b2075656b93b7bad7578e32f) +++ lams_tool_forum/web/includes/layout.jsp (.../layout.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,23 +1,20 @@ -<%@ include file="/includes/taglibs.jsp" %> -<%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles" %> +<%@ include file="/includes/taglibs.jsp"%> +<%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles"%> - + - - - - - - - - - + + + + +
">
+ + + +
- - - - - + + + Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/includes/style.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/includes/tabsLayout.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/web/includes/taglibs.jsp =================================================================== diff -u -r4296cc24afab0a22b2075656b93b7bad7578e32f -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/includes/taglibs.jsp (.../taglibs.jsp) (revision 4296cc24afab0a22b2075656b93b7bad7578e32f) +++ lams_tool_forum/web/includes/taglibs.jsp (.../taglibs.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -2,4 +2,6 @@ <%@ taglib uri="/WEB-INF/struts/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles" %> +<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> +<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%> Index: lams_tool_forum/web/jsps/authoring/authoring.jsp =================================================================== diff -u -ree36bb343b77214b9bffd9a8e47dd9e8caa25813 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision ee36bb343b77214b9bffd9a8e47dd9e8caa25813) +++ lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -23,7 +23,7 @@ - + @@ -67,7 +67,6 @@ - <%@ include file="basic.jsp"%> <%@ include file="instructions.jsp"%> <%@ include file="advance.jsp"%> Index: lams_tool_forum/web/jsps/authoring/basic.jsp =================================================================== diff -u -ree36bb343b77214b9bffd9a8e47dd9e8caa25813 -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/jsps/authoring/basic.jsp (.../basic.jsp) (revision ee36bb343b77214b9bffd9a8e47dd9e8caa25813) +++ lams_tool_forum/web/jsps/authoring/basic.jsp (.../basic.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,52 +1,66 @@ + + +
+

+

+ + + + + + + + + + + + + + + + - -
-

-

-
:
: + +
+ <%@ include file="/jsps/message/topiclist.jsp" %> +
+ ');"> + + +
- - - - - - - - - - - - - -
:
: - -
- - - - - -
- -
- - - - - - - - - - -
Topic -
- - - - -
-
-
-
+ + + + + + + + + + + + + + Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/advanced.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/basic.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/editAdvanced.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/editBasic.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/editInstructions.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/includes/advanced.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/includes/basic.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/includes/instructions.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/forum/instructions.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/web/jsps/authoring/message/create.jsp =================================================================== diff -u -r7c2b1a8f06af3cbdb52aa229c170fb80ec2022ad -r0653e8df3351a6178f4dcb842f4eda25a3d2341b --- lams_tool_forum/web/jsps/authoring/message/create.jsp (.../create.jsp) (revision 7c2b1a8f06af3cbdb52aa229c170fb80ec2022ad) +++ lams_tool_forum/web/jsps/authoring/message/create.jsp (.../create.jsp) (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -1,13 +1,13 @@ <%@ include file="/includes/taglibs.jsp" %> -<%@ include file="/includes/messages.jsp" %>
+ onsubmit="return validateMessageForm(this);" >
-<%@ include file="includes/form.jsp" %> +<%@ include file="/jsps/message/topiclist.jsp" %> +<%@ include file="/jsps/message/form.jsp" %>
Fisheye: Tag 0653e8df3351a6178f4dcb842f4eda25a3d2341b refers to a dead (removed) revision in file `lams_tool_forum/web/jsps/authoring/message/includes/form.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/web/jsps/message/form.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/message/form.jsp (revision 0) +++ lams_tool_forum/web/jsps/message/form.jsp (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + +
*
  
  
   + +
Index: lams_tool_forum/web/jsps/message/topiclist.jsp =================================================================== diff -u --- lams_tool_forum/web/jsps/message/topiclist.jsp (revision 0) +++ lams_tool_forum/web/jsps/message/topiclist.jsp (revision 0653e8df3351a6178f4dcb842f4eda25a3d2341b) @@ -0,0 +1,17 @@ +
+ + + + + + + + + + +
Topic +
+ +
+