How does the Google Web Toolkits work with servlets?

I am considering creating a web application using Java and the Google Web Toolkit, and I have some questions.

I assume that when someone navigates to a URL such as http://site.com/Signup , the registration servlet will load, which will do all the necessary work and redirect the request to JSP, which will display the HTML and Javascript code.

If there is a specific javascript component that uses the GWT component, it will be associated with the <script type='...'></script> .

If this is true, is it possible to put the GWT code in the same project? Or do I need to create 2 projects, one for servlet / server code and one for GWT?

Another reason I'm asking about this is that when I create a new Dynamic Web project through Netbeans or Eclipse, it creates many folders like build, dist, src, web, meta-inf, etc. . (I suppose these are because of TomCat), and when I create a project for GWT, it creates several different folders. So my question is: can these two be combined into one project, and if so, how?

+4
source share
1 answer

Heres a tutorial when using GWT with your servlets.

+1
source

All Articles