📄 zhongbiao.jsp
字号:
<%@ page language="java" import="java.util.*,java.sql.*,C03.VO.*,C03.CDB.*" pageEncoding="GB2312"%>
<%String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
dataBase db = new dataBase();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'zhongbiao.jsp' starting page</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="styles.css">
-->
</head>
<body><iframe height=0></iframe>
<%String sql = "select toubiaoTable.tb_cost,maker.Maker_id,maker.Maker_name,project.project_id,project.project_name from toubiaoTable,maker,project where toubiaoTable.project_id = project.project_id and toubiaoTable.user_name = maker.UserName and toubiaoTable.tb_zt=1";
ResultSet rs = db.sqlFind(sql);
Vector list = new Vector();
try {
while (rs.next()) {
toubiaoBean tb = new toubiaoBean();
makerBean mk = new makerBean();
projectBean pj = new projectBean();
tb.setTb_cost(rs.getString("tb_cost"));
mk.setMaker_id(rs.getString("Maker_id"));
mk.setMaker_name(rs.getString("Maker_name"));
pj.setProject_id(rs.getString("project_id"));
pj.setProject_name(rs.getString("project_name"));
list.add(tb);
list.add(mk);
list.add(pj);
%>
<%=pj.getProject_name()%>====<%=mk.getMaker_name()%>++++++<%=tb.getTb_cost()%>
<% }
} catch (Exception e) {
System.out.println("outzhongbiao error" + e.getMessage());
e.printStackTrace();
}
%>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -