<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="verify_login.jsp" %><%--包含验证用户是否登录的代码 --%> <%@page import="javabean.db_conn"%> <%@page import="java.sql.ResultSet"%> "/> 用户中心 <%!String user_name;%> <% db_conn conn=new db_conn(); String sql="select * from p_inf where p_tel='"+session.getAttribute("user_id")+"'"; ResultSet res=conn.executeQuery(sql); if(res.next()) user_name=res.getString(2); %>