开发者

How to enable servlet in GWT project

I created one GWT webapplication project.Inthat i want to create servlet program,but in that project not开发者_开发知识库 allow to create servlet program.How to solve this?


Read the docs? http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html

It's all there. Using Eclipse and Google Eclipse Plugin should help too :)


Not sure I understand your question, I think you should precise exactly what you want to do.

Anyway, GWT does not prevent you from coding a classical servlet.

A servlet is part of Java server side technology. So as long as your are using a servlet container (Tomcat, Glassfish, Jetty etc.) for the server you can use a servlet in your project.

To do so create your servlet class and declare it in your web.xml. You can find many tutorials like this one that will explain to you how to do this : tutorial

From your GWT client you can call your servlet using a RequestBuilder requestBuilder javadoc

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜