|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP THREE LINKS YOU MUST CLICK ON Product Review Content Management
Content Management
By: Daniel Goldstein
Aug. 2, 2002 12:00 AM
This article outlines how to build a typical content-based Web application, a threaded message board. In recent years, threaded message boards have gained popularity due to their ability to draw visitors back to a site with the appeal of fresh content. Message boards also make financial sense. Unlike the costly process by which Web teams create their own content, a threaded message board automates publication and delegates it to site users. Additionally, companies have achieved significant cost reduction in the area of technical support by creating message boards where communities of users can answer one another's support requests. Since a threaded message board sits atop a database of content, a dynamic or database-driven content management system drastically speeds the creation and operation of such a Web application This article reviews the basics of building a threaded message board on the BEA WebLogic application server and the FatWire UpdateEngine content management system, which is database-driven and compatible with the Microsoft SQL Server, Oracle, and IBM DB2 databases. With WebLogic, UpdateEngine automates many of the steps involved in creating a threaded message board, such as defining database tables, creating edit screens, and making vendor-specific SQL and workflow calls.
Anatomy of a Threaded Message Board
Every message belongs to a thread, which is a post about a new topic and its subsequent replies. The left frame of Figure 1 displays the two threads called "New thread" and "Application Accelerators." From this main interface, users can create a new thread, select a thread to view its messages, or reply to a message within a thread. If the users begin a new thread or reply to an existing thread, they are presented with an HTML form to enter the message content.
Building the Dynamic Threaded Message Board Application
The first step in developing a dynamic Web application is designing the database structures that will hold the content. Surprisingly for a message board, we can get by with only one data structure (content class in UpdateEngine parlance): that of the basic message or post. The messages on this board will contain the fields shown in Table 1.
Create Tables in the Database
Program Templates to Run the Message Board
Display_Threads
Display_Posts
/*Create a query to find posts whose parent is the current thread, This template should also provide an option to reply to the thread. To do this, create a link that calls the Create_Post template, passing in the information that a reply (and not a new thread) should be created.
Create_Post
Process_Post
Once the database structure is created and the four JSP templates function as desired, the message board is up and running.
Manage Content
To access a data-entry form, first locate the message to edit. Messages may be located from the UpdateEngine browse screen, shown in Figure 4, and they can be sorted on by a number of key fields. Alternatively, the moderator can access a record using UpdateEngine's search or Power Search tools, which allow Boolean searches over any fields in the database. Once the desired record is identified, it can be checked out (to prevent other moderators from editing it simultaneously) and sent to the edit screen. If board moderators want to have a higher level of control over what appears on their site, all new messages can be placed into a workflow process instead of being posted live. Workflows are defined using the UpdateEngine GUI. In this example, two stages, "unapproved" and "live," will suffice, but any number of levels of field- and item-level workflow can be created. Using the Java API, the Process_Post template should be modified so it sets the workflow stage to "unapproved," and the display templates should be modified to show messages only in the "live" stage. Now messages will only appear on the board after an authorized moderator has approved them from the UpdateEngine browse screen.
Conclusion
BEA WEBLOGIC LATEST STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING NEWS FROM THE WIRES
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||