Thread: Are servlets the solution?

  1. #1
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144

    Are servlets the solution?

    Firstly,
    i apologize to Salem, lightatdawn, Troll_King and the rest of you for using inappropriate and inflammatory language in my posts. I tried to edit them, but that's no excuse.

    Secondly,
    i need to find a way to display dynamic data graphically in a web page. i was thinking of looking into servlets, and i was wondering if anyone here had extensive experience with them. Are they suited for my purpose? Is there a "graphin'" class library? Do anyone have personal information to share?

    thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Yeah... I do servlets and JSP.... what do you need?


    >>Is there a "graphin'" class library?

    A what?


  3. #3
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    <<what do you need?>>

    I'm coming to the end of a semester project, which is basically a distributed data mining system based on the the Department of Defense's High Level Architecture specifications. The back of the end of the system is nearing completion, and we've dicussed many alternatives for a user interface/front end. If there is a way we can use the web, we would prefer it since it would greatly improve the viability of the system. That's where the servlet would come into play. It would link with the system and communicate with the mining component, which holds all the relavent data, and we need a way to represent this data on a web page in a form human's can read--graphical representations of relationships, etc. I need to "draw my data"...

    my question is: Do you know of anything similar that has been done before, meaning graphical representation of dynamic data (it could be bar graphs, pie charts, anything). If you do, can you point me in that direction? Are servlets the tool for the job?

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>Are servlets the tool for the job?

    Servlets are just java classes that output to a Http response. Often they are used to output html. Essentially, anthing you can do with java for the data retrival/processing of the information can be implemented in a servlet. If you want to use graphs and the like, you would normally be restricted here by the fact that you will output HTML.

    One idea is to perhaps implement the front end via an applet embeded into a HTML doc. With the applet, you can then display the information however you wish using the graphical capabilities that java has. to retrieve this info, you can use http tunneling to transmit raw data to the applet after it has been processed by the servlet. One advantage of this is that you could refresh the data without refreshing the html page. Thats a way of doing this with java anyway....

    Perhaps you could use XML, XLS etc..... I dont know too much about this as I am still in the early days of learning it and I dont have much time to spare to get to grips with it....

  5. #5
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144

    Thanks

    So just to recap, you suggest using a servlet to communicate with the system and gather the data, and the "http tunnel" (i have to look it up) the data to an embedded java applet? We had thought of using an applet, but we didn't want all the crunch on the user's machine. With your solution it is possible for the Web server machine to do the heavy work and hand the data to the display applet, correct? If i understand you right, this sounds like a good solution.

    thank you for your time...
    THIS IS NOT JUST A CHRONICLING OF THINGS WE HAVE DONE IN THE PAST BUT OUR RISE TO POWER.

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>? We had thought of using an applet, but we didn't want all the crunch on the user's machine. With your solution it is possible for the Web server machine to do the heavy work and hand the data to the display applet, correct?


    Yup...thats the selling point......

    It'll take some work though if you're learning from scratch...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 'Solution' and 'Project' usage in VC++
    By C+/- in forum C++ Programming
    Replies: 2
    Last Post: 01-13-2007, 09:50 AM
  2. anyone know the solution?
    By heeroyung in forum C Programming
    Replies: 15
    Last Post: 09-30-2005, 06:46 AM
  3. My Unix/Linux SECURITY SOLUTION - pls read
    By bjdea1 in forum Linux Programming
    Replies: 3
    Last Post: 04-11-2004, 09:28 PM
  4. Problem and Solution
    By DavidP in forum Tech Board
    Replies: 3
    Last Post: 08-18-2003, 02:23 AM
  5. Homemade hair bleaching solution
    By deltabird in forum A Brief History of Cprogramming.com
    Replies: 22
    Last Post: 02-10-2003, 10:34 PM