📄 b0174a0da77e001c121fb8720e9416c1
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<%@ page import="java.sql.*" %><!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=gb2312"><title>登录</title></head><body><jsp:useBean id="login" scope="session" class="bb.Dbcon" /><%
String username1=request.getParameter("username");
String password=request.getParameter("password");
String Error=new String();
String password2;
ResultSet rs=null;
login.Dbcon();
rs=login.executeQuery("select password from user where user='"+username1"'");
password2=rs.getString("password");
if(password.equal(password2))
{if (rs.depm=1)
%>
<jsp:forward page="stock.jsp"/>
<%
;else if(rs.depm=2)
%>
<jsp:forward page="sell.jsp"/>
<%
;else if(rs.depm=3)
%>
<jsp:forward page="staffer.jsp"/>
<%
;else if(rs.depm=4)
%>
<jsp:forward page="finance.jsp"/>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -