Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XUL access to database, which route to take?

843841Feb 22 2006
Hello,

My apologies if I am posting to the wrong forum, I didn't know where this request should go.

I have created a simple toolbar as a Firefox extension using XUL. Right now the user can click a bunch of buttons and some dialog boxes pop up. I want those dialog boxes to be populated with data from a central database.

XUL allows you to attach javascript code which is invoked when the user clicks on a button.

Is there anyway to use javascript to access a database? (I have mysql running on a linux server, tomcat is available).

Some research I have done seems to indicate that I should have my javascript talk to a local applet, which in turn would talk to a servlet, which in turn would talk to my database.

Others have suggested that the javascript talk directly to the servlet, and still others have suggested various ways to get javascript to talk directly to the database.

Does anyone have any suggestions for the best way to approach this? Does anyone have any tutorials or example code for a very simple javascript application that accesses a database?

Much thanks,
Dave
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2006
Added on Feb 22 2006
0 comments
82 views