该死的servlet,为什么我重定向不了
来源:互联网 发布:学校奖学金算法 编辑:程序博客网 时间:2024/05/01 04:26
这是servlet里面的部分内容:
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {//request.getRequestDispatcher("hehe.jsp").forward(request, response);
System.out.println(request.getParameter("username")+"-----"+request.getParameter("content"));
response.setContentType("text/html; charset=utf-8");
response.sendRedirect("test.html");
return;
}
这是某jsp页面的js部分内容:
$("tr:first").click(function(){
alert("hehe");
$.post("Test",{
username : "aaaaa" ,
content : "hehehehehe"
});
});
点击了对应的部分之后,myselipse输出如下;(第二行内容)
信息: Server startup in 816 ms
aaaaa-----hehehehehe
由此说明我数据都传过来了,为何浏览器没有重定向到test.html呢?
求大神解答orz。。。。
- 该死的servlet,为什么我重定向不了
- 该死的CSDN,为什么我有一个写了好几篇文章的blog用不了了
- JSP/Servlet的重定向
- servlet的重定向错误
- 该死的我!
- sort colors 快排变形(重) 为什么我的数据过不了
- servlet的2种重定向方法
- Servlet/JSP服务器端的重定向(z)
- Servlet/JSP服务器端的重定向
- Servlet/JSP服务器端的重定向
- Servlet/JSP服务器端的重定向
- JSP/Servlet的重定向技术综述
- JSP/Servlet的重定向技术综述
- JSP/Servlet的重定向技术综述
- JSP/Servlet的重定向技术综述
- Servlet/JSP服务器端的重定向
- JSP/Servlet的重定向技术综述
- Servlet/JSP服务器端的重定向
- 在keil中添加STC的MCU型号步骤
- WEB密码安全输入控件
- shell中特殊变量$0 $1 $# $$ $! $?的涵义
- RStudio:R语言编辑器
- 一个简易的8位计算器,可实现加减乘除,testbench写的较为简易,代码覆盖率有点低。方法比较笨,综合之后的频率不高。
- 该死的servlet,为什么我重定向不了
- java awt简单示例1
- R 语言画图的基本参数
- eclipse单独下载sdk api
- 【四圣龙神录的编程教室】第5章、研究下声明的方法吧
- 在android源码framework里添加的资源文件!
- 静态链表
- R语言-Knitr包的详细使用说明
- hdu oj 2012