Java Applet for SQL Query

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

I have very little experience with Java Applets, but I was wondering if there is a java applet out there that will display results from a SQL statement/query that you can set to update every second or two. So practically live results, in other words.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

I don't have much experience of Java Applets either, but I do know they'll operate like any other client-side object in the way that they interact with the server.

You will be able to poll the server once every few seconds for a result (using PHP, or some other server-side language, perhaps even JSP), but it will not be any easier than doing it with Javascript and some AJAX. The Javascript method will probably be better supported in this context, and less CPU-intensive. Smiling

Disclaimer: Whilst it may sound like I know what I'm talking about it may turn out to be complete bilge. Smiling

a Padded Cell our articles site!

He has: 1,758 posts

Joined: Jul 2002

Nah I'm with you... ajax would be easy compared to writing a java applet. In fact... I think it could be made very very easy if you used a javascript framework like jquery for the job...

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.