%@page import="javabean.db_conn"%> <%@page import="java.sql.ResultSet"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="verify_login.jsp" %><%--包含验证登陆代码--%> "/> 用户个人信息 <%! 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(1); } %> 个人资料 电话号码 <%=session.getAttribute("user_id") %> 姓名 <%=user_name %> 修改