diff --git a/jweb/web/1414080902216/index.jsp b/jweb/web/1414080902216/index.jsp index 782613ce..e5b1e243 100644 --- a/jweb/web/1414080902216/index.jsp +++ b/jweb/web/1414080902216/index.jsp @@ -3,7 +3,8 @@ String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> - +<%@ taglib prefix="c" + uri="http://java.sun.com/jsp/jstl/core" %> @@ -33,12 +34,20 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. +<% +request.setAttribute("plan","12.01罗浮山班游"); +%>

聚会添加系统



+
diff --git a/jweb/web/1414080902216/jilu.jsp b/jweb/web/1414080902216/jilu.jsp new file mode 100644 index 00000000..e6da9f74 --- /dev/null +++ b/jweb/web/1414080902216/jilu.jsp @@ -0,0 +1,47 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@ page import="java.io.*,java.util.*,java.sql.*"%> +<% +String path = request.getContextPath(); +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + 聚会记录 + + + <% + String driveName = "com.mysql.jdbc.Drive"; + String userName = "root"; + String userPwd = "123456"; + String dbName = "meet"; + String url1 = "jdbc:mysql://localhost:3306/meet"; + String url2 = "?user=root&password=123456"; + String url3 = "&useUnicode=true&characterEncoding=UTF-8"; + String url = url1+url2+url3; + Class.forName("com.mysql.jdbc.Driver"); + Connection conn = DriverManager.getConnection(url); + String sql = "select *from meets"; + PreparedStatement p = conn.prepareStatement(sql); + ResultSet r = p.executeQuery(); + r.last(); + %> +

您现在的聚会有<%=r.getRow() %>个

+ + + + + <%r.beforeFirst(); + while(r.next()){ + %> + + + + + <%} %> +
聚会聚会时间开始时间
<%=r.getString("miid") %><%=r.getString("malltime") %><%=r.getString("mstarttime") %>
+ <%if(r!=null){r.close();} + if(p!=null){p.close();} + if(conn!=null){conn.close();} + %> + + \ No newline at end of file