📄 login_validate.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/aqu" prefix="aqu" %>
<html>
<body>
<c:if test="${param.userName==null||param.userPassword==null}">
你好,有什么可以为您效劳的?
</c:if>
<c:if test="${param.userName!=null&¶m.userPassword!=null}">
<c:set value="${aqu:loginValidate(param.userName,param.userPassword)}" var="login"/>
<c:set value="${aqu:getUrl()}/admin/admin_index.jsp" var="okUrl"/>
<c:if test="${login=='ok'}">
<% session.putValue("admin","yes"); %>
<c:redirect url="${okUrl}"/>
</c:if>
<c:if test="${login=='error'}">
用户名或密码错误,请查证后重试
</c:if>
</c:if>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -