java 连接mysql查询你需要写的是从数据库中取数据
%@ page language="java" import="java.util.*,com.snowice.imple.*,com.snowice.entity.*" pageEncoding="gbk"%
%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
style type="text/css"
a:link {
font-size: 20pt;
color: #FFFFF;
text-decoration: none;
}
a:visited {
font-size: 20pt;
color: #FFFFF;
text-decoration: none;
}
a:hover {
font-size: 20pt;
color: #FFFFF;
text-decoration: none;
}
a:active {
font-size: 20pt;
color: #FFFFF;
text-decoration: none;
}
/style
base href="https://www.04ip.com/post/%=basePath%"
title中国移动通信_建议查询/title
meta http-equiv="pragma" content="no-cache"
meta http-equiv="cache-control" content="no-cache"
meta http-equiv="expires" content="0"
meta http-equiv="keywords" content="keyword1,keyword2,keyword3"
meta http-equiv="description" content="This is my page"
!--
link rel="stylesheet" type="text/css" href="https://www.04ip.com/post/styles.css"
--
style type="text/css"
!--
.STYLE2 {
font-size: 36px;
font-family: "宋体";
color: #0033CC;
}
.cssTable {
border: 1px solid #FFCC00;
}
.STYLE10 {
font-size: 24px;
color: #0000FF;
}
.STYLE16 {color: #333333; font-weight: bold; }
.STYLE25 {font-size: 16px}
.STYLE29 {
font-size: 14px;
color: #333333;
}
.STYLE31 {color: #333333; font-weight: bold; font-size: 24px; }
.STYLE32 {color: #333333}
.STYLE24 { color: #0000FF;
font-weight: bold;
}
.STYLE37 {color: #333333; font-family: "宋体";}
--
/style
/head
body
%
UserImple ui = new UserImple();
Users r = ui.findRegister(session.getAttribute("user").toString());
System.out.println("-=="+r.getAnything());
%
table width="1023" border="0" cellpadding="0" cellspacing="0"
!--DWLayoutTable--
tr
td width="141" height="38" /td
td width="173" rowspan="2" valign="top"img src="/images/defaultpic.gif" //td
td width="396" valign="top"span class="STYLE2"中国移动客服网欢迎您cc怎么连接mysql!/span/td
td width="313" /td
/tr
tr
td height="36" /td
td /td
td /td
/tr
/table
table width="1023" border="0" cellpadding="0" cellspacing="0"
!--DWLayoutTable--
tr
td width="140" height="90" /td
td width="672" valign="top"img src="/images/defaultpic.gif" //td
td width="211" valign="top"table width="211" height="89" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC" class="cssTable"
!--DWLayoutTable--
tr
td width="209" height="51"span class="STYLE25"欢迎您cc怎么连接mysql:%=session.getAttribute("user") %/span/td
/tr
tr
td align="center"label
a href="https://www.04ip.com/post/login.jsp"退出/a
/label/td
/tr
/table/td
/tr
/table
table width="1023" border="0" cellpadding="0" cellspacing="0"
!--DWLayoutTable--
tr
td width="140" height="13" /td
td width="883" valign="top" bgcolor="#0033CC"!--DWLayoutEmptyCell-- /td
/tr
/table
table width="1023" border="0" cellpadding="0" cellspacing="0"
!--DWLayoutTable--
tr
td width="138" height="15" /td
td width="173" rowspan="5" valign="top"table width="100%" border="0" cellpadding="0" cellspacing="0"
!--DWLayoutTable--
推荐阅读
- sap现金管理与预算控制,erp现金管理
- 苹果cms怎么同步的简单介绍
- 冒险解谜沙盒游戏,冒险类沙盒游戏
- 直播伴侣直播怎么那么卡,直播伴侣直播怎么那么卡顿
- linux的vi搜索命令 linux view搜索
- oppo手机root怎么解除root,oppo解除root权限设置
- 大型sap,大型saas平台,技术架构
- php怎么自定义插入数据 php自定义表单
- 要怎么彻底删除sqlserver,要怎么彻底删除存在sim卡上的号码