I am completely new to Java.
I create a servlet and get an interface is expected here.
error message interface is expected here.
Could you help me understand the problem?
I am using IntelliJ 14.
My servlet code is as follows: -
package ERPdetector; import javax.servlet.http.*; import javax.servlet.*; import java.io.*; public class ErpServlet implements HttpServlet { public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { res.setContentType("text/html"); PrintWriter pw=res.getWriter(); String dropdown=req.getParameter("dropdown"); pw.println("You Requested for "+dropdown); pw.close(); } }
Thanks at Advance.
source share