For a program querying a database through internet and put the results in charts and update the results every couple of minutes, I am wonder what is the basic technology to do it in Java (not Javascript ,I know know ). I can either use servlet to pull data out of database and send HTML page back to browser or use a big java applet to query database directly from browser (have to use JDBC???) and process data on client side. I need someone give me oppinions on this.

Also I saw dynamic stock data quatation charts in java applet on many business web sites are very efficient to handle same situation, could someone give me some leads on how do they achieve it in java? Any way to get sample code?

Thanks a lot. I am still learning VB and now I get an opportunity to learn java in a hurry )