tags:

views:

53

answers:

2

What do i need to upload from my gwt project to web hosting? its just html or all project files?

A: 

You'll only need to upload the html files, the css files, and your java file. Also, any other file linked to within your html files need to go in the same directory.

Greg Treleaven
how about gwt folder inside each class folder(in war folder) or xx.web.xml files? many folder like this and its confuse me if that folder linked or not.
Open your HTML file(s) in notepad, and any file name that's referenced to needs to be uploaded with it.
Greg Treleaven
+2  A: 

Any modern Java IDE gives you an option to export a web project as a war module. If your are not using an IDE, it depends:

If you just write your code under client folder, no need to upload any .class files to the server. You don't need any Java Application server as well, and a normal HTTP server (such as Apache) would suffice. An example of such a GWT application is GWT showcase which is included in GWT download package.

If you have any server-side code under server package, then you should upload .class files (under WEB-INF/classes folder in your web modile) as well as the rest of .js, .css, .jpg/gif, .html files. In this case you need a servlet container such as Tomcat to serve your server-side code.

Mohsen