⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 JSP购物车(SQLserver版) ================== 简单的JSP电子商务网站购物车 带结算功能,带注册系统 大二时自己编写的,供大家参考学习 功能不是很详尽,美工
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="inc/common.jsp" %><%
String beforeURL = null; //判断URL来源
if(request.getAttribute("beforeURL")!=null){
	beforeURL = (String)request.getAttribute("beforeURL");
}else{
	beforeURL = request.getHeader("referer");
}
String wrongPassword = ParamUtils.getStringAttribute(request,"wrongPassword",null);
int loginPosts = ParamUtils.getSessionInt(request,"loginPosts",0);
com.yeqiangwei.club.controller.form.UserLoginForm userLoginForm = (com.yeqiangwei.club.controller.form.UserLoginForm)ParamUtils.getAttribute(request,"UserLoginForm");
if(userLoginForm==null){
	userLoginForm = new com.yeqiangwei.club.controller.form.UserLoginForm();
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户登录(${basic.name})</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="${basic.keywords}"/>
<meta name="description" content="${basic.description}"/>
<meta name="author" content="YeQiangWei.com"/>
<link href="images/favicon.ico" rel="Bookmark" /> 
<link href="images/favicon.ico" rel="icon" type="image/x-icon" />
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<club:html type="css" />
<style>
.list .tr {padding-left:10px; font-weight:bold;}
</style>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript" src="scripts/login.js"></script>
<script type="text/javascript">
function rememberMyFirst(value){
	var chk = c.o("rememberMyFirst").checked;
	if(chk){
		var p = "act=loginForward&lfw="+value;
		myxmlhttp = CreateXmlHttpReq(this.xmlHttpHandler);
		XmlHttpPOST(myxmlhttp, "/club/userAjax.do", p);
	}
	return true;
}
function xmlHttpHandler(){
	if (myxmlhttp.readyState !=4 ) {
		return;
	}
	var text = myxmlhttp.responseText;
}
function doFocus(){
	c.o("userName").focus();
}
</script>
</head>
<body>
<%@ include file="/club/inc/nav.jsp" %><%@ include file="/club/inc/header.jsp" %>
<div class="sitemap">
<ul>
<li>您的位置:<a href="/club/" target="_parent">社区首页</a>&gt;&gt;<a href="main.jsp" target="_self">进站画面</a>&gt;&gt;<h3>用户登录</h3></li>
</ul>
</div><%if(user!=null){%>
<div class="sidebar list">
<div class="tr red">登录成功!您可以选择跳转到:</div>
<div class="tr"><a onclick="return rememberMyFirst('1');" href="main.jsp">进站画面</a></div>
<div class="tr"><a onclick="return rememberMyFirst('2');" href="myInfo.jsp">个人信息管理页</a></div>
<div class="tr"><a onclick="return rememberMyFirst('3');" href="<%=beforeURL%>">来源页:<%=beforeURL%></a></div>
<div class="tr">
<label for="rememberMyFirst" style="width:auto; padding-left:0px">
<input type="checkbox" name="rememberMyFirst" id="rememberMyFirst" value="1" style="margin-top:2px;"  onclick="c.o('rememberHint').style.display='block';"/>记住我的首选</label>
<span id="rememberHint" class="hide blue" style="padding-left:10px; font-weight:normal; width:auto;">你还可以到左侧工具栏《控制面板》-&gt;《个性设置》更改这个首选项!</span></div>
</div>
<%}else{%><%@ include file="inc/login.jsp" %><%}%><%@ include file="inc/footer.jsp" %>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -