---
title: "Struts2/JSP/HTML 页面自动跳转的方法"
author: "huangxiaobing"
date: "2010-03-16T13:41:47Z"
tags: []
categories: ["Web前端"]
slug: "struts2-jsp-html"
draft: false
lastmod: "2010-03-16T13:41:47Z"
id: 616952
url: "https://4ujava.iteye.com/blog/616952"
---

1）在Body中使用JS实现 

    

```
 <script type="text/javascript">
         this.location.href="/provision/login/login"; 
  </script>
```

 

2）使用JSP的response.sendRedirect

     

```
<%
         response.sendRedirect("login/login")
 %>
```

 

3）使用head的属性实现

```
 <META HTTP-EQUIV="Refresh" CONTENT="0;URL=login/login">
```