今天又出现这个问题,只是写了一个表单跳转到servlet的程序。 后来查书发现是表单中的<form action="/MyServlet" ..>写错了应该是<form action="MyServlet" ...>没有/