If you plan to use PHP I suggest to use rest, json and the RequestBuilder.

http://www.google.it/search?sourceid=chrome&ie=UTF-8&q=php+rest+json&qscrl=1
<http://www.google.it/search?sourceid=chrome&ie=UTF-8&q=php+rest+json&qscrl=1>
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideHttpRequests
<http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideHttpRequests>

On Fri, Aug 6, 2010 at 01:17, Maurice Nee <lyden...@gmail.com> wrote:

> Thanks again for the reply. I was planning to send the generated query
> to a PHP file on the server that connects to a MySQL database and
> executes the query, but point taken about the security hole. So how
> would I go about doing this then? Can I just make regular Java classes
> in the server package of my GWT project and then use RPC to send my
> DTOs across the wire to those classes where I can use Reflection to
> analyze the DTOs and build queries from them? Then I guess I would use
> JDBC to execute the query... Also, will I need to setup a servlet
> container like Tomcat on the server?
>
> On Aug 5, 6:46 pm, Ian Petersen <ispet...@gmail.com> wrote:
> > As GWT is client-side only it has no direct access to any SQL database
> > (modulo whatever I don't know about client-side storage in HTML5) so
> > generating SQL "in GWT" is either a waste of time or a security hole
> > waiting to happen.  Your server should definitely not be trusting SQL
> > generated on the client!
> >
> > If you want to do what you've described, you need to do it on the
> > server, in regular Java, where reflection works as usual.
> >
> > Ian
> >
> >
> >
> > On Thu, Aug 5, 2010 at 3:06 PM, Maurice Nee <lyden...@gmail.com> wrote:
> > > Thanks for the reply. Generators seem like a lot to swallow. I'm
> > > trying to introspect a set of DTO's that I want to marshall to and
> > > from a database. I would like to be able to make use of the convention
> > > over configuration principle and have my DTO class names = table names
> > > in the database and have my Java field names = field names in the
> > > database. Then I was hoping to use reflection to dynamically build SQL
> > > queries based on the given DTO. Am I out of luck with GWT?
> >
> > > Also, I don't have time for the Hibernate learning curve. Hibernate +
> > > GWT + Gilead + Maven + Spring = Will not meet deadline :)
> >
> > > On Aug 5, 5:20 pm, Ian Petersen <ispet...@gmail.com> wrote:
> > >> At run time, it's impossible.  At compile time, you use the generator
> > >> API.  Back in the GWT 1.5 time frame it wasn't well documented but
> > >> that may have changed since.
> >
> > >> Ian
> >
> > >> On Thu, Aug 5, 2010 at 1:42 PM, Maurice Nee <lyden...@gmail.com>
> wrote:
> > >> > How can I get a variable's name in GWT?
> >
> > >> > How can I get a collection of declared variables in a class in GWT?
> >
> > >> > --
> > >> > 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-tool...@googlegroups.com.
> > >> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> > >> > For more options, visit this group athttp://
> groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> > > For more options, visit this group athttp://
> groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
*Stefano Ciccarelli*
stef...@indacosoftware.it

*Indaco srl*
via Sabin, 22 - 40017 San Giovanni in Persiceto (BO) - Italy
tel. +39.051.827762 - fax +39.051.6874570
i...@indacosoftware.it
www.indacosoftware.it

*- This e-mail is confidential and may be read, copied and used only by the
intended recipient. If you have received it in error, please contact the
sender immediately by return e-mail. Please then delete the e-mail and do
not disclose its contents to any other person.

- Le informazioni contenute in questa comunicazione sono riservate e
destinate esclusivamente alla/e persona/e o all'ente sopra indicati. E'
vietato ai soggetti diversi dai destinatari qualsiasi uso, copia, diffusione
di quanto in esso contenuto sia ai sensi dell'art. 616 c.p., sia ai sensi
del DL n. 196/03. Se questa comunicazione Vi e' pervenuta per errore, Vi
preghiamo di rispondere a questa e-mail e successivamente cancellarla dal
Vostro sistema.*

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to