I am new to java servlets. I learning from the basic. I have a simple servlet program, but i don't know how to run it.
public class HelloWorld extends HttpServlet
public void doGet(HttpServletRequest request,
throws ServletException, IOException
PrintWriter out = response.getWriter();
You need to make sure you've created a web application project in Netbeans, then you should be able to run your Servlet as part of it. This guide is for Netbeans 5 but the principles should be still the same: