There are two ways:

GWT RPC
GWT FormPanel
JSONP

Did I say two ways? So, it's actually three ways. Or more.

If your content server is the same as your web app server, you should
consider converting to using GWT RPC.

if your current app's client-server communications is mostly with html
forms, you should consider converting the forms to GWT FormPanel, and
then gradually evolve your application towards GWT RPC.

If your content needs to communicate with another server (other than
its own), you need to consider using JSONP.

I am presuming you are using Eclipse with the google plugin. If you
are not using Eclipse ... I don't see why any programmer would want to
unnecessarily torture himself/herself by taking up the challenge of
not using Ecipse with google plugin.

The structure of a GWT module directory is normally:
module-dir/
 - client folder
 - server folder
 - public folder
 - module's gwt.xml file

The public folder is for placing all your static files which the GWT
compiler would copy to the module folder in the war directory - put
your current JSP files here. Modify all your url references to conform
to the new url of these JSPs. Use the module rename-to attribute to
shorten the module's public url.

The client folder is where your GWT source files should be.

The server folder is where you place your server-side Java source -
normally used to place RPC servlets.

For your other servlets, you could simply create the same package
namespace your current servlets and classes uses and place those
package hierarchy next to your GWT source tree.

What you could do is create a non-Google (non-GWT non-GAE) project in
Eclipse to house your current project. Then at project properties->
Google in Ecipse, turn on GWT and your project would automagically be
converted into a GWT project. Make sure. again, that google plugin is
installed first.

If you are not using GAE, ensure GAE option is turned off. GAE and GWT
options sit next to each other in the Google menu item in project
properties in Eclipse.

You should try out a GWT RPC example first.

For JSONP - read 
http://code.google.com/webtoolkit/articles/using_gwt_for_json_mashups.html.

And, of course, you need to do some reading.

-- 
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.

Reply via email to