您的位置首页百科知识

跳转到index.jsp4种不同的方法

跳转到index.jsp4种不同的方法

的有关信息介绍如下:

跳转到index.jsp4种不同的方法

1,用JS代码: location.href="index.jsp";

2,用页面中使用JSP标签:

3,在JAVA代码中进行重定向: response.sendRedirect("index.jsp");

4,JAVA代码中用转发(服务器内部跳转): request.getRequestDispatcher("index.jsp").forward(request, response);