JSP用户登录页面
2016-06-25 08:27
615 查看
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <% String name="liuliu"; String password="1122333"; if(!name.equals(request.getParameter("name"))||!password.equals(request.getParameter("password"))) { %> <meta http-equiv="Refresh" content="0;url=cuowu.jsp"> <% } else { out.println("提交成功"); } %> </body> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <form action="zhuye.jsp" method="post"> 名称:<input type="text" name="name"> <br> 密码:<input type="password" name="password"> <br> <input type="submit" value="提交" > </form> </body> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> 你真笨蛋 <meta http-equiv="Refresh" content="20;url=denglu.jsp"> </body> </html>
![](https://images2015.cnblogs.com/blog/845248/201606/845248-20160625082232250-1365825253.png)
![](https://images2015.cnblogs.com/blog/845248/201606/845248-20160625082413438-963726339.png)
![](https://images2015.cnblogs.com/blog/845248/201606/845248-20160625082507406-1055612401.png)
![](https://images2015.cnblogs.com/blog/845248/201606/845248-20160625082620266-1735190659.png)
相关文章推荐
- js选项卡
- js节点属性
- .net 使用Json(),maxJsonLength属性设置的值问题
- JS中的进制转换以及作用
- Simple MVVM中利用JsonConvert 序列化Model实体类
- javascript 广告移动特效的实现代码
- js删除局部变量的实现方法
- js将滚动条滚动到指定位置的简单实现方法
- js操作XML文件的实现方法兼容IE与FireFox
- jsp 分页 tag
- 基于howler.js开发的音乐播放器
- Javascript高级程序设计第三章知识总结
- 【json】jsoncpp函数接口
- Construct2 cr(construct2 runtime)命名空间内的函数
- JS盒子模型
- Construct2 的Edittime要点
- seajs
- 【JavaScript DOM编程艺术(第2版)】第十章疑难点
- BZOJ_1031_[JSOI2007]_字符串加密_(后缀数组)
- 用原生JS实现一个轮播(包含全部代码和详细思路)