<%@ page language="java" contentType="application/json" pageEncoding="UTF-8"%>
<%@ page import="net.sf.json.*"%>
<%@ page import="java.util.*" %>
<%@ page import="weaver.general.*" %>
<%@ page import="weaver.hrm.HrmUserVarify"%>
<%@ page import="weaver.hrm.User"%>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<%
response.setContentType("application/json;charset=UTF-8");
BaseBean log = new BaseBean();
User user = HrmUserVarify.getUser(request, response);
if (user == null) {
response.sendRedirect("/login/Login.jsp");
return;
}
String userloginid=user.getLoginid();
String userlastname=user.getLastname();
int userid=user.getUID();
out.println("登录名:"+userloginid);
out.println("用户名:"+userloginid);
out.println("用户ID:"+userid);
%>
E8/9:任意页面获取登录用户信息
于 2022-11-10 10:52:38 首次发布