Wednesday, February 28, 2007

GWT client-side and server-side codes

Idid a search about using database in GWT. I figured that there are two types of codes: client-side and server-side.

client-side Java codes will be converted to Javascript that will be use by the web browser.

server-side Java codes will not be converted to Javascript. They will be compiled into servlets and process the data sent by clients.

In order for a browser to request data or services from the server, we must make some service interfaces according to the GWT standards. A good example of this is the article on using GWT, Apache derby, and tomcat to build an online ordering-pizza web application.

The problem is when I created the GWT project, there is not any directory called "server" (which should be in the src folder as stated by GWT tutorial) where I can store the server-side code. I will create this directory manually tomorrow, hopefully it will work.

No comments: