I am using GWT with AppEngine on Eclipse. When I try to build a simple Servlet, Eclipse keeps complaining that javax.servlet.http.HttpServlet
" cannot be found in source packages ".
How can I get Eclipse happy?
updated: found the problem: it seems Eclipse with the GWT pluging would rather have server-side code in a .server
package.
确保gwt sdk中的gwt-user.jar在构建路径上。
您可以使用maven并向servlet-xxx jar(例如servlet-api-2.4.jar)添加依赖项。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.