po enctype = żądanie „wieloczęściowe / dane formularza” nie działa

public class Relay extends HttpServlet {   
    @Override
    public void service(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        String command = request.getParameter("command");
        RequestDispatcher rd =request.getRequestDispatcher(command);
        rd.forward(request, response);
        System.out.println("Request forwarded to " + command + " servlet");
    }
}

To mój sztafeta, wysyłam datę z

 <form action="Relay" method="POST" enctype="multipart/form-data"> /
 <input  type="hidden" name="command" value="AddProduct" />
<input type="text" name="pname" value="" />
<input name="" type="submit" value="Add Product">
</form>

Podaje wyjątek java.lang.NullPointerException. enctype = "dane wieloczęściowe / formularze" // gdy usuwają swoje dzieła dobrze

questionAnswers(3)

yourAnswerToTheQuestion