一,JSP页面跳转方式
1,form表单提交跳转
action和method都需要配置,method默认get请求
<form action = "1.jsp?password=123" method = "post">
账号: <input type = "text" name = "username"/>
<br/><br/>
<input type ="submit" value = "登录"/>
</form>
<!-- HTMLform标签时 hidden 隐藏域标签 -->
<!-- 作用:页面传值 不会在页面上显示 -->
<input type ="hidden" name = "sex" value = "男"/>
2,超链接标签页面跳转
<h5>不带参数超链接页面跳转</h5>
<a href = "1.jsp">跳转到1.jsp页面</a>
h5>带参数超链接页面跳转</h5>
<a href = "1.jsp?hobby=打游戏">跳转到1.jsp页面</a>
3.js中location页面跳转
<button type = "button" onclick = "one()">不带参数跳转</button>
<button type =