1.在通过admin安装过滤器时,会报ClassNotFoundException异常。
2.在浏览器键入http://localhost:8080/jivejdon/index.jsp时,最后总会自动变成http://localhost:8080/jivejdon/,看了index.jsp的代码,只有几行简单的代码:
<%
response.setContentType("text/html");
response.setDateHeader("Expires", 0);
response.setHeader("Location", request.getContextPath());
System.out.println("getContextPath:"+request.getContextPath());// 自已加的打印,
response.setStatus(301);
%>
打印出来的是 "/jivejdon" 也许这就是它为什么又变成 http://localhost:8080/jivejdon/的原因,但我不明白为什么 http://localhost:8080/jivejdon/ 这个地址可以把页面显示出来,它并没有指向任何jsp或html文件啊? 也没找到severlet用PrintWriter动态写页面。 我想这个问题应该是很简单,还望各位高手不要笑话,希望能得到大家的指点
[该贴被abaddoncoder于2012-07-01 21:58修改过]