Hi mate
When you build your GWT application with Eclipse 3.4 its using RPC
I'm connecting to my postgres database so you need to research on the
driver youneed for SQL server
.
So:
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.SQLException;
c =
DriverManager.getConnection("jdbc:postgresql://192.168.55.101/databasename",
"username", "pass");
Statement select =
c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.TYPE_SCROLL_SENSITIVE);
ResultSet res = select.executeQuery("select * from fred;");
Next stick the results int an array and grab them on the client side
from "reusult" :
markers[x][0] = new String(result[x][0]);
markers[x][1] = new String(result[x][1]);
markers[x][2] = new Float(result[x][2]);
markers[x][3] = new Float(result[x][3]);
I can;t help much with the tree view though.
Regards
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---