Main.java:7: error: class BBSServlet is public, should be declared in a file named BBSServlet.java
public class BBSServlet extends HttpServlet {
^
Main.java:4: error: package javax.servlet does not exist
import javax.servlet.*;
^
Main.java:5: error: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
Main.java:7: error: cannot find symbol
public class BBSServlet extends HttpServlet {
^
symbol: class HttpServlet
Main.java:9: error: cannot find symbol
public void doGet(HttpServletRequest request, HttpServletResponse response)
^
symbol: class HttpServletRequest
location: class BBSServlet
Main.java:9: error: cannot find symbol
public void doGet(HttpServletRequest request, HttpServletResponse response)
^
symbol: class HttpServletResponse
location: class BBSServlet
Main.java:10: error: cannot find symbol
throws ServletException, IOException {
^
symbol: class ServletException
location: class BBSServlet
Main.java:29: error: cannot find symbol
public void doPost(HttpServletRequest request, HttpServletResponse response)
^
symbol: class HttpServletRequest
location: class BBSServlet
Main.java:29: error: cannot find symbol
public void doPost(HttpServletRequest request, HttpServletResponse response)
^
symbol: class HttpServletResponse
location: class BBSServlet
Main.java:30: error: cannot find symbol
throws ServletException, IOException {
^
symbol: class ServletException
location: class BBSServlet
10 errors