非常怪的servlet
非常怪的servlet我写了一个servlet程序:
import *;
import javax.servlet.*;
import javax.servlet.http.*;
public class Hello extends HttpServlet {
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Hello World!");
}
}
运行:
http://localhost:8080/ServletCoding/servlet1
输出
Hello World!
很正常,但是
我将out.println("Hello World!");改为了out.println("Good Job!");
并且重机新发布了工程,但是,在网页上显求却一直是Hello World!
请问,这是为什么?