利用jsp标签完成将用户登录的信息显示到该页面
来源:互联网 发布:网络公关服务 编辑:程序博客网 时间:2024/05/03 16:05
FormEnter.jsp:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'FormEnter.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="Enter.jsp" method="post">
UserName:
<input type="text" id="username" name="username">
<br />
PassWord:
<input type="password" id="password" name="password" />
<br />
<br/>
<input type="submit" id="button" value="Submit" />
<input type="reset" id="button" value="Reset" />
</form>
</body>
</html>
Enter.jsp:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'Enter.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
Welcome ! !
<br/>
UserName:<c:out value="${param.username}"></c:out>
<br/>
PassWord<c:out value="${param.password}"></c:out>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'FormEnter.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="Enter.jsp" method="post">
UserName:
<input type="text" id="username" name="username">
<br />
PassWord:
<input type="password" id="password" name="password" />
<br />
<br/>
<input type="submit" id="button" value="Submit" />
<input type="reset" id="button" value="Reset" />
</form>
</body>
</html>
Enter.jsp:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'Enter.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
Welcome ! !
<br/>
UserName:<c:out value="${param.username}"></c:out>
<br/>
PassWord<c:out value="${param.password}"></c:out>
</body>
</html>
- 利用jsp标签完成将用户登录的信息显示到该页面
- 1 完成登录页面(到记事本文件进行密码和用户名的验证)。 2 完成 用户注册页面(将注册信息显示在本页面 div 中)。
- JSP+Servlet+MySQL完成将数据库中的数据显示到页面
- 将pdf显示到jsp页面
- JSP实现简单的用户登录,并显示出用户的信息
- 从该页面输入的两个文本框的值 到另一个jsp页面显示
- img标签在jsp页面无法显示时该怎么办
- 在用户登录的时候,将用户名显示在登录成功的页面,使用session。
- 完美解决DiscuzX3.2版本的QQ登录跳转到完善信息页面完成注册流程
- 利用session完成用户登录
- 利用字典管理用户的登录信息
- jsp计数器--页面统计特定用户的登录次数或所有人的访问信息
- 利用Servlet和jsp实现客户端与服务器端的用户登录信息验证
- 利用C#显示MP3的标签信息
- 利用C#显示MP3的标签信息
- 关于页面显示当前登录的用户
- 使用Jsp,Servlet等技术,该项目主要是实现用户登录,将数据库中的学生信息输出在浏览器上
- 利用Session完成用户的登录和注销
- tomcat的启动过程
- 树状数组
- [Linux系列] Memory Performance Statistics
- opencv官网
- Perl 作为命令行实用程序
- 利用jsp标签完成将用户登录的信息显示到该页面
- 粗谈linux内存管理
- 寒假前刷题(1)
- Windows Server 2003 中使用组策略远程安装软件
- MSDN无法打开。此计算机中未配置默认浏览器。需安装、配置默认浏览器才能显示帮助。
- MFC单文档架构解析
- 草稿FMDB
- 由.bak文件恢复成数据库文件的操作步骤???
- 半导体存储器的分类