简体   繁体   English

Netbeans + Servlet

[英]Netbeans + servlet

在我的J2EE应用程序中,我使用了一个servlet,但是Netbeans似乎并不能识别javax.servlet.http.HttpServlet,javax.servlet.http.HttpServletRequest或javax.servlet.http.HttpServletResponse库。使用Netbena 6.7 ...如何解决问题????

选择Java Web项目模板。

Just like adatapost already said, make sure you started with a project type that's appropriate, like Java Web Web Application. 就像已经说过的adatapost一样,请确保您从适当的项目类型开始,例如Java Web Web Application。 The tutorials on the Netbeans side are very helpful, you can find the web related tutorials here Netbeans方面的教程非常有帮助,您可以在此处找到与Web相关的教程

  1. At the time of installation, select customize button and then check both Glassfish and Apache Tomcat. 在安装时,选择定制按钮,然后检查Glassfish和Apache Tomcat。
  2. Select Java Web Application while creating new project. 创建新项目时,选择Java Web Application。

Yes. 是。 Also, you might need the web development related plugins for creating a new 'Java web application'. 另外,您可能需要与Web开发相关的插件来创建新的“ Java Web应用程序”。

The 'Java SE' variant of Netbeans might not be sufficient. Netbeans的“ Java SE”变体可能还不够。 Download the complete Java Netbeans IDE (for 238 MB) from here 此处下载完整的Java Netbeans IDE(238 MB)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM