如何为Tomcat设置GWT? [英] How to setup GWT for Tomcat?

查看:173
本文介绍了如何为Tomcat设置GWT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GWT新手,并通过Google文档学习它。我如何设置GWT与Tomcat?
我需要将其与Tomcat进行整合以用于工作目的。

I am new to GWT and learning it via the the Google documents. How do I setup GWT with Tomcat? I am required to intergrate it with Tomcat for work purposes.

推荐答案

没有什么特别的。您只需编译您的gwt项目,并将war文件夹导出到Tomcats webapps文件夹。

There is nothing special to do. You just have to compile your gwt project, and export the war folder to the Tomcats webapps folder.

您使用的是什么IDE?如果您使用的是eclipse或类似的,以及更新版本的tomcat,只需将war文件夹的内容导出为普通zip文件。然后将扩展名从.zip更改为.war,并将其复制到webapps文件夹。重新启动tomcat,它会自动解压缩存档并创建适当的文件夹。 I.E. .war档案的内容可能如下所示:

What IDE are you using? If you are using eclipse or similar, and a newer version of tomcat, just export the contents of the war folder as a regular zip archive. Then change the extension from .zip to .war, and copy it to the webapps folder. Restart tomcat, and it will automatically unzip the archive and create the appropriate folder. I.E. the contents of the .war archive might look something like the following:

project_name.war
   - css
   - images
   - WEB-INF
   - gwt compiled_javascript folder
   - index.html

这篇关于如何为Tomcat设置GWT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆