Hi avd,

avd schrieb:

> my problem is, How can i add a JDBC connector to my classpath to run
> the SQL queries in GWT? Tutorial and examples suggest me doing this
> through "/opt/classpath/mysql-connector-java-5.1.5/mysql-connector-
> java-5.1.5-bin.jar".
> but i'm not able to get the result of sql queries.Please suggest me
> good solution.

First of all, you can't connect to MySQL using JDBC inside the
GWT-client (there are about thousand threads about this in this
forum, so I'm not going into detail here), so you have to implement
a RemoteServiceServlet that is called by the GWT-client (I assume
that you use Java on the server-side).

Inside the servlet, you connect to the MySQL-database. There are
a couple of examples out there, here is one:
http://www.stardeveloper.com/articles/display.html?article=2003090401&page=1
After that you execute the SQL-statement and return the result
to the client. To be able to do that you have to create a resultset
that can be serializied (java.sql.Result is not part of the JRE
emulation of GWT), e.g. a String[][].


Regards, Lothar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to