Data structure for web-based discussion forum

Hello all. I have begun work on a discussion board forum but have not yet decided upon a data structure for the hierarchy of messages to be left on a board. Any one have any thoughts or experience in this matter? My first thought was to implement a basic linked list in which every reply to a message would be a new child of a node. This would require I use recursion in some areas for counting and finding messages but I was also thinking that this way I can store each thread object in a simple fashion using serialization.
SJ

THE STANDARS DIRECTORY STRUCTURE IS :-
PROJECT FOLDER
|
|---------->WEB-INF
|------> web.xml file
|-------> classes (folder to keep java files)
|-------> lib (folder to keep jar files)

Similar Messages

  • Projet : java based discussion forum

    hi all,
    i am planning to build a project based upon JAVA.
    the base concept is to build a java based discussion forum.
    this is my first independent project so can anyone please suggest answers to following questions :
    (1) how to start building a project.
    (2) for text editor in my project should i use any existing editor or should i create editor on my own.
    thanks
    pratz

    804658 wrote:
    and for the editor related question may be i was not clear with the question.
    actually i wanted to ask about the editor that the end user will use in my application to post his thought but ill appreciate if you could have asked me that for which editor i am asking the question instead of directly saying that i am not ready to build a project, that is really discouraging.Well, I'm just giving you honest feedback. If you don't even know how to start a project, then a discussion forum is probably a bit out of your reach.
    As for your question about the editor. I assume you're creating a web based discussion forum? Then the "editor" would be just a regular HTML textbox (most likely) that the user would fill with his text.
    But maybe you'll want to start with something smaller. For a discussion forum you'll need to know how to use databases, create web user interfaces and handle all sorts of other things. Do you know how to do those or did you think (like so many others here) that you'll just pick those up along the way?

  • Do we have a built-in option for web based tool in Nexus 5548UP switches for management purpose?

    I have purchased Nexus 5548UP switch, i want to know if we have a built-in option for web based tool to manage and configur it just as ASA have ASDM. If there is no such options then what are the options available that can be freely available and can be used to get performance monitoring done.
    Message was edited by: Praveen Varun

    DCNM (Data Center Network Manager) runs on a server (Windows, RHEL or Solaris) and can be used to manage Nexus devices. It's free for Nexus 1K through 5K devices (paid license required for Nexus 7K management).
    http://www.cisco.com/en/US/products/ps9369/index.html
    There is not a "built-in" management product like ASDM for ASA.

  • Course Apprisal for Web Based Traning is not considering the inputs values

    Dear All,
    We have created Course Appraisal Template for Web Based Training.  It is reflected in portal and we are able to see the template and we can give the values also.  When I am executing the template the following error is showing " The status change not possible"
    Please advise me in this.
    Regards,
    Milan

    Hello,
    What's the format of the TrainingID, is it the same in both cases?
    How do you know the value isn't being passed - could it be that it's not passed correctly?
    What's the error message?
    regards
    Rick Bakker
    Hanabi Technology

  • Use java do something similiar to ws_ftp for web based

    Hi, I'm just wondering is it possible to use java or java applet to do something similiar to ws_ftp for web based purpose?
    The idea is 2 windows. 1 for local harddisk browsing and another for the remote ftp server. So that I can drag and drop (or click the arrow button) from this window to that window to upload a file.
    If it's possible. can anyone help me get started? Such as where to find documentation or what library to use etc? Thanks

    if i am not wrong, you can use servlets and serialization....but you have to check those out yourself.
    sorry, i am not being not of much help!

  • Reccomendations for web-based data visualization tools?

    Hello again,
    I am embarking on a interesting research project that will involve recording lots of physiological signals from patient monitors in a hospital.  I will be recording signals like BP, spO2, Pulserate, ECG, etc.
    Right now, my main design concern is how to give clinicians access to the data after it is recorded.
    My wish list is:
    - Store the data securely, where access can be controlled (e.g. perhaps in a RDBMS like SQL Server)
    - Allow users (who are granted access) to login and view historical data via a simple web browser
    - Allow users to zoom, scroll, etc. 
    - Allow user to view data in stacked plots (e.g. so they can see ECG, BP and HR simultaneously on the screen and scroll the time axis)
    - Allow user to annotate data (e.g. add comments at specific timestamps)
    Anybody have any reccomendations for a web-based data visualization tool like this?
    I know that people are probably going to reccomend Diadem ... but I don't think its web-based is it?

    There is actually a new thing available called LabVIEW Web UI Builder.  This allows you develop web-based applications that have a custom GUI that can interface with other LabVIEW applications.  You can find more information on the Web UI Builder page on ni.com. There is also a dedicated forum that you can use to post questions about the Web UI Builder.  That forum is located here.  I hope that you find this helpful!
    Brandon Treece
    Applications Engineer
    National Instruments

  • What is the best data structure for loading an enterprise Power BI site?

    Hi folks, I'd sure appreciate some help here!
    I'm a kinda old-fashioned gal and a bit of a traditionalist, building enterprise data warehouses out of Analysis Service hypercubes with a whole raft of MDX for analytics.  Those puppies would sit up and beg when you asked them to deliver up goodies
    to SSRS or PowerView.
    But Power BI is a whole new game for me.  
    Should I be exposing each dimension and fact table in the relational data warehouse as a single Odata feed?  
    Should I be running Data Management Gateway and exposing each table in my RDW individually?
    Should I be flattening my stars and snowflakes and creating a very wide First Normal Form dataset with everything relating to each fact? 
    I guess my real question, folks, is what's the optimum way of exposing data to the Power BI cloud?  
    And my subsidiary question is this:  am I right in saying that all the data management, validation, cleansing, and regular ETTL processes are still required
    before the data is suitable to expose to Power BI?  
    Or, to put it another way, is it not the case that you need to have a clean and properly structured data warehouse
    before the data is ready to be massaged and presented by Power BI? 
    I'd sure value your thoughts and opinions,
    Cheers, Donna
    Donna Kelly

    Dear All,
    My original question was: 
    what's the optimum way of exposing data to the Power BI cloud?
    Having spent the last month faffing about with Power BI – and reading about many people’s experiences using it – I think I can offer a few preliminary conclusions.
    Before I do that, though, let me summarise a few points:
    Melissa said “My initial thoughts:  I would expose each dim & fact as a separate OData feed” and went on to say “one of the hardest things . . . is
    the data modeling piece . . . I think we should try to expose the data in a way that'll help usability . . . which wouldn't be a wide, flat table ”.
    Greg said “data modeling is not a good thing to expose end users to . . . we've had better luck with is building out the data model, and teaching the users
    how to combine pre-built elements”
    I had commented “. . . end users and data modelling don't mix . . . self-service so
    far has been mostly a bust”.
    Here at Redwing, we give out a short White Paper on Business Intelligence Reporting.  It goes to clients and anyone else who wants one.  The heart
    of the Paper is the Reporting Pyramid, which states:  Business intelligence is all about the creation and delivery of actionable intelligence to the right audience at the right time
    For most of the audience, that means Corporate BI: pre-built reports delivered on a schedule.
    For most of the remaining audience, that means parameterised, drillable, and sliceable reporting available via the web, running the gamut from the dashboard to the details, available on
    demand.
    For the relatively few business analysts, that means the ability for business users to create their own semi-customised visual reports when required, to serve
    their audiences.
    For the very few high-power users, that means the ability to interrogate the data warehouse directly, extract the required data, and construct data mining models, spreadsheets and other
    intricate analyses as needed.
    On the subject of self-service, the Redwing view says:  Although many vendors want tot sell self-service reporting tools to the enterprise, the facts of the matter are these:
    v
    80%+ of all enterprise reporting requirement is satisfied by corporate BI . . . if it’s done right.
    v Very few staff members have the time, skills, or inclination to learn and employ self-service business intelligence in the course of their activities.
    I cannot just expose raw data and tell everyone to get on with it.  That way lies madness!
    I think that clean and well-structured data is a prerequisite for delivering business intelligence. 
    Assuming that data is properly integrated, historically accurate and non-volatile as well, then I've just described
    a data warehouse, which is the physical expression of the dimensional model.
    Therefore, exposing the presentation layer of the data warehouse is – in my opinion – the appropriate interface for self-service business intelligence.
    Of course, we can choose to expose perspectives as well, which is functionally identical to building and exposing subject data marts.
    That way, all calculations, KPIs, definitions, and even field names, and all consistent because they all come from the single source of the truth, and not from spreadmart hell.
    So my conclusion is that exposing the presentation layer of the properly modelled data warehouse is – in general - the way to expose data for self-service.
    That’s fine for the general case, but what about Power BI?  Well, it’s important to distinguish between new capabilities in Excel, and the ones in Office 365.
    I think that to all intents and purposes, we’re talking about exposing data through the Data Management Gateway and reading it via Power Query.
    The question boils down to what data structures should go down that pipe. 
    According to
    Create a Data Source and Enable OData Feed in Power BI Admin Center, the possibilities are tables and views.  I guess I could have repeating data in there, so it could be a flattened structure of the kind Melissa doesn’t like (and neither do I). 
    I could expose all the dims and all the facts . . . but that would mean essentially re-building the DW in the PowerPivot DM, and that would be just plain stoopid.  I mean, not a toy system, but a real one with scores of facts and maybe hundreds of dimensions?
    Fact is, I cannot for the life of me see what advantages DMG/PQ
    has over just telling corporate users to go directly to the Cube Perspective they want, that has already all the right calcs, KPIs, security, analytics, field names . . . and most importantly, is already modelled correctly!
    If I’m a real Power User, then I can use PQ on my desktop to pull mashup data from the world, along with all my on-prem data through my exposed Cube presentation layer, and PowerPivot the
    heck out of that to produce all the reporting I’d ever want.  It'd be a zillion times faster reading the data directly from the Cube instead of via the DMG, as well (I think Power BI performance sucks, actually).
    Of course, your enterprise might not
    have a DW, just a heterogeneous mass of dirty unstructured data.  If that’s the case,
    choosing Power BI data structures is the least of your problems!  :-)
    Cheers, Donna
    Donna Kelly

  • Open ended data structure for retrieving SQL data

    I have a flex project that reads data from a database and
    sends it to my flex app to display in a chart. I need to do this in
    Actionscript since I have to dynamically create different charts
    based on the database definitions. Up til now, I have inserted the
    data for each series into a separate
    ArrayList(java)/ArrayCollection(flex) in this way:
    BindingUtils.bindProperty(lineSeries, "dataProvider", series,
    "pointList");
    lineSeries.xField="point1";
    lineSeries.yField="point2";
    The series variable is a custom Actionscript/Java object
    which contains an ArrayCollection called pointList. And the array
    is made up of custom DataObjects with two fields, point1 &
    point2.
    But in the new paradigm, I'd basically like to create a big
    array of arrays similar to a database table and then just point the
    xField to one column, and the yField to another column. Anyway, it
    seems like the problem is that my point1 and point2 in the current
    implementation are variable names, but with this new dynamic
    structure, I won't be able to create variables on the fly. So how
    do I let flex know to look at column 3, for example for the yField?
    The attached code is from the Flex documentation and is an example
    of what I'd like to emulate (except I need to do it in
    actionscript). I'd like to be able to select "month" or "amount",
    etc. But coming from the Java side, there is no way for me to name
    the array contained in each column.

    I guess I wasn't clear enough. I am actually serializing a
    java object and mapping it to an actionscript object via blazeDS. I
    know about how the objects translate, for example for
    ArrayCollections in flex, I use ArrayLists in java. The problem is
    that I'm not sure how to get the associative aspects of the arrays
    in flex into my java data structures in a way that will translate
    to the way flex can define arrays, such as Month:"January".
    It seems that in flex, you can create an Array and assign it
    an element like {month:"January", amount:"450"} and it will create
    an Object with variables for month and amount. But I don't know how
    to do this on the fly in Java (or in Actionscript for that matter)
    when I have no way of knowing beforehand how many variables my
    object will need. Each series will need an x and y, though usually
    the x will be dates which are the same for each series. So if I had
    10 series sharing an axis, I'd need 11 variables in my object-
    date, series1, series 2...series 10.

  • Using COGNOS as an infoprovider/data source for WebI...?

    I saw a job posting today that listed a requirement that I am pretty sure is IMPOSSIBLE...
    WebIntelligence report experience with using COGNOS as an infoprovider/data source for BOBJ is an important skill.
    Data sources for client will be both COGNOS and SAP.
    Now, it wouldn't be the first time that a client spec asked for the IMPOSSIBLE- but it got me to wondering if maybe I am wrong in my understanding that COGNOS 8 still uses PowerPlay cubes that are 100% proprietary and can only be read with the CONGOS report-design tools.
    Is there actually a "supported" way to use COGNOS as an infoprovider/data source for BOBJ...?
    Maybe using some COGNOS equivalent of QAAS...?
    I have no intention of applying for this job - but would like to know if it is technically possible.

    It's been more than a week since I posted this question and nobody came up with a "YES" here or on the BOB Forums...so I am going to close this question as an IMPOSSIBLE request.
    Based on the current technology - COGNOS cubes can not be used as an infoprovider/data source for WebIntelligence.

  • Web-based iPlanet Forum

    Hi,
    There is a forum at JavaRanch (most popular Java related forum on the
    web). Each week several books are given
    out to the participating members at various forums. You will also find
    many of the top selling Java/J2EE book
    authors participating in many of the forums.
    It's all free and anyone is welcomed to join. You can also discuss about
    the new iPlanet Server certification there.
    The URL is:
    http://www.javaranch.com/cgi-bin/ubb/Ultimate.cgi
    Look for the forum "Sun/iPlanet" from the list of forums.
    Faisal Mahmood

    Hi Faisal,
    Thanks for starting a new forum on JavaRanch for iPlanet products, but I think it is not a good idea to divert people from a place where they can be in touch with iPlanet experts.
    Thanks,
    Sanjeev.

  • A robust data structure for a histogram of events over time.

    Hi all,
    I've been thinking for days, I am still lost on how to solve the following:
    Let's say that we have a list of events that occur over a certain time interval. Each event has a start timestamp and a finish timestamp. The events occur in no particular order and expand over various length of periods.
    With respect to the histogram, we mark the time period of an event occuring with a frequency of one. When events overlap over a time period, we mark that time period with a frequency of number of overlapping events.
    Given this raw data, we want to examine the data's frequency under various granularity such as second, minutes, hours, days, weeks, month and years for 60sec, 60min, 24 hrs, 7 days, 4 wks ranges respectively.
    So, what is a good intermediate (general) data structure that can store all the various events such that they can be easily transformed to a specific granularity. My goal here is to read the event list once, and histogram of events data with respect to various timeframe can be calculated.
    Does a timeline like data strucuture that stores aggregated frequencies solve my problem? With a fine granuarlity say seconds and a long time range, the data structure will bound to overflow.
    Any help is greatly appreciated!
    Brian

    You data structure would be in terms of Classes. You need a class Anevent{
    String eventName;
    Date startTime;
    Date endTime;
    In your main program have a Vector object which can store unllimited objects and which would not overflow. Store your event objects as they happen in this Vector. After your time interval of events is completed and you have the final Vector, you can pass the vector object to various methods in your main program to be simple or pass it to specailized graph drawing classes you would have to write to draw various Histograms.

  • Data structure for simulation of message queue

    Hello,
    I have undertaken a project of simulating the point to point and publish/subscribe protocols of message queueing. This whole project would be done just in Java. There won't be any system level programming. Which data structure in Java would be the most efficient one for the message queue?

    Hello,
    I have undertaken a project of simulating the point to point and publish/subscribe protocols of message queueing. This whole project would be done just in Java. There won't be any system level programming. Which data structure in Java would be the most efficient one for the message queue?

  • Data Structure for New General Ledger for mySAP 2004

    Guys,
    We are preparing to upgrade to mySAP 2004.
    mySAP 2004 doesn't have data migration tool for upgrade "classic" ledger to new ledger with advanced functionality. To utilize all new functionality, data should be migrated to the new ledger. Data migration tool in this case should be developed (ABAP). What is the difference in data structure of new ledger?
    if anybody who already went thru upgrade and could share some examples of programs for mySAP 2004 upgrade, my e-mail : [email protected]
    Thanks in advance,
    Mike

    Now I have the same problem. Anyone has a solution for this matter?

  • What is the new data structure for .RTM files in LV8?

    We have software that translates our LV
    program to another language.  Part of that software package reads RTM
    files, decodes them, replaces text, and resaves them.  That code is
    broken for menus that are saved in LV8+, however.  What is the new data
    structure?
    The simple attached zip file has vi's which
    are not ours but serve to illustrate the point.  If it's run on an
    older RTM file, it correctly outputs and XML version of it, on newer
    RTM files it just throws an error.
    -- This is the second time I posted this.  I was curious what the Solution? icon did on somebody elses post and I apparently marked the whole thread as solved (there should really be an undo on that feature btw --
    Attachments:
    RunTime_Menu_to_XML.zip ‏33 KB

    Hi Thomas,
     What error are you getting when running the program?  I was actually able to run it without errors in LV 8.6.  
    There are ways to programmatically read and customize RTM files in LabVIEW.  I hope that the following links will help:
    http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/customizing_shortcut_menus_programm/
    http://digital.ni.com/public.nsf/allkb/17803AA31C8C07C986256CFD0080D609?OpenDocument
    Cheers, 
    Marti C
    Applications Engineer
    National Instruments
    NI Medical

  • 100% view for print docs but not for web based layouts?

    Why do documents view at the correct on screen size when set at 100% for print documents but to view a document at the right pixel size for web it's more like 66.4%?
    Thanks

    In CS6 if you double-click the Zoom tool you'll get the 1:1 monitor to pixel ratio, which is the same as Photoshop's and earlier ID version's 100% view.
    You can also go back to the earlier functionality via scripting, see this thread for scripts:
    http://forums.adobe.com/message/4502849#4502849

Maybe you are looking for

  • What is the best way to scale Red footage in FCX?

    Hi everyone, I'm currently editing a feature film in Final Cut X Pro (10.0.9).  I've edited on FCX in the past, but this is my first feature project with it.  The feature was shot on two cameras.  Camera A was a Red Epic (5K).  Camera B was a Red Sca

  • Ragarding ALV Report output  running  in background

    Hi All,             When i running report in background , the output is not formatted. i.e. output is not coming in single row for a particular row in a report,it is down to second row. as result when i spool this output to excel (spread sheet) ,the

  • [JS] Setting font of a textRange

    Hi In Ai CS3, I am trying to set the font of an entire textFrame, using this type of syntax: newFrame.textRange.characterAttributes.textFont.family = "Arial"; Either using 'family' or 'name', this produces no result whatsoever. Anyone willing to shed

  • Unknown state or association field with @Transformation

    I have a class that uses a Transformation mapping for the IP address field. The IP address is the string dot notation in the class, but is a long integer in the database. My entity class looks like this: @Entity @Table(name="LOCATION_MAP") public cla

  • Help! m4v video files appear and download as .txt

    We always used QuickTime .mov files and everything worked correctly. We are now trying to make all videos available in iPod compatible format. And are no able to do it correctly on iWeb. Video streaming works correctly. But I made a little JPG button