语法格式 response.sendRedirect(String path);
<form action="form1" method="post" action="">
用户名:<input name="name" type="text" id="name" style="width:120px"><br>
密 码:<input name="name" type="password" id="pwd" style="width:120px"><br>
<br>
<input type="submit" name="Submit" value="提交">
</form>
```javascript
<%
response.sendRedirect("login.jsp");
%>