我在Netbeans中编写JApplet。我的applet正在运行,所以我决定添加servlet因为我想登录/退出。当我将servlet添加到我的项目时,如下所示:
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
我遇到以下错误:
error: package javax.servlet does not exist
import javax.servlet.ServletException;
error: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
Apache Tomcat正在运行。