5
我調用已實現CometProcessor接口的servlet,每當我嘗試用get請求調用servlet時,我都會收到上述錯誤。我可以知道原因嗎?這個URL不支持HTTP方法GET
public class ChatServlets
extends HttpServlet implements CometProcessor {
public void event(CometEvent event)
throws IOException, ServletException {
HttpServletRequest request = event.getHttpServletRequest();
HttpServletResponse response = event.getHttpServletResponse();
if (event.getEventType() == CometEvent.EventType.BEGIN) {
response.getWriter().println("Welcome ");
} else if (event.getEventType() == CometEvent.EventType.READ) {
response.getWriter().println("Bye");
}
}
}
有沒有錯誤「上面」或我錯過了什麼? – 2010-06-08 07:40:50