From 0338b09dad59fb18a9d00c6e894cdc70afd1bb08 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Fri, 31 May 2024 18:49:53 +0800 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work.jsp" | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 "work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" diff --git "a/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" "b/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" new file mode 100644 index 0000000..8ea3d3e --- /dev/null +++ "b/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" @@ -0,0 +1,69 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + + + + +

+ +<%! + class Animal{ + String sleep(){ + return "一只动物在睡觉"; + } + } + class Cat{ + private String name; + private int time; + + public Cat(String name, int time) { + this.name = name; + this.time = time; + } + + public Cat() { + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getTime() { + return time; + } + + public void setTime(int time) { + this.time = time; + } + String sleep(){ + String text = "一只"+this.getName()+"睡了"+this.getTime()+"小时"; + return text; + } + } + +%> +<% + Animal animal = new Animal(); + out.println(animal.sleep()); +%> +
+<% + Cat cat = new Cat("加菲猫",8); + out.println(cat.sleep()); +%> +
+<% + for (int i = 1; i <= 9; i++) { + for (int j = 1; j <= i; j++) { + out.print(j+"X"+i+"="+i*j+" "); + } + out.print("
"); + } +%> +

+ + \ No newline at end of file -- Gitee From 8dfd8f340bde9949d74f9a4689fe616346d95324 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Fri, 31 May 2024 18:50:52 +0800 Subject: [PATCH 2/8] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work.jsp" | 1 - 1 file changed, 1 deletion(-) diff --git "a/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" "b/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" index 8ea3d3e..2a13740 100644 --- "a/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" +++ "b/work/com/java/minxi/java_20240531/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work.jsp" @@ -5,7 +5,6 @@

- <%! class Animal{ String sleep(){ -- Gitee From 3e347ac10e0a9a44eecb5ac86a30eac207f7d688 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Wed, 5 Jun 2024 20:51:08 +0800 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle.jsp" | 23 +++++++++++++++++++ .../ladder.jsp" | 0 .../main.jsp" | 20 ++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" create mode 100644 "work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" new file mode 100644 index 0000000..76634b8 --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" @@ -0,0 +1,23 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + +<%! + // 计算圆的面积 + public double getCircleArea(double r){ + return 3.14 * r * r; + } +%> +<% + + String r = request.getParameter("radius"); + double rs = Double.parseDouble(r); + +%> +

圆的面积为: <%=getCircleArea(rs)%>

+ + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" new file mode 100644 index 0000000..e69de29 diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" new file mode 100644 index 0000000..b0aedbf --- /dev/null +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" @@ -0,0 +1,20 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + <%! + + %> + <% + double r = 200;double top = 10;double under = 20;double height = 5; + %> +

圆的半径为:<%=r%>cm

+ + + + + + -- Gitee From 76e568840919ad17510f92d9e5fe3aadeb0a8673 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Wed, 5 Jun 2024 21:04:45 +0800 Subject: [PATCH 4/8] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle.jsp" | 1 + .../ladder.jsp" | 32 +++++++++++++++++++ .../main.jsp" | 7 +++- 3 files changed, 39 insertions(+), 1 deletion(-) diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" index 76634b8..fbb3c1a 100644 --- "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" @@ -18,6 +18,7 @@ double rs = Double.parseDouble(r); %> +

圆的半径为:<%=r%>cm

圆的面积为: <%=getCircleArea(rs)%>

\ No newline at end of file diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" index e69de29..566b80e 100644 --- "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/ladder.jsp" @@ -0,0 +1,32 @@ +<%@ page language="java" contentType="text/html charset=UFT-8" pageEncoding="UTF-8"%> + + + + +<%! + public String getLadderArea(double top,double bottom,double height){ + if(top<=0||bottom<=0||height<=0){ + return "数据不合法,不参与计算"; + }else{ + return "梯形的面积为: " + (top+bottom) * height / 2; + } + } +%> + +<% + //从main.jsp获取数据 + String top = request.getParameter("top"); + String bottom = request.getParameter("bottom"); + String height = request.getParameter("height"); + + //转换格式 + Double t = Double.parseDouble(top); + Double b = Double.parseDouble(bottom); + Double h = Double.parseDouble(height); + + +%> +

梯形的上底为: <%=t%>,<%=b%>,<%=h%>

+

<%=getLadderArea(t,b,n)%>

+ + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" index b0aedbf..f80d860 100644 --- "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/main.jsp" @@ -11,10 +11,15 @@ <% double r = 200;double top = 10;double under = 20;double height = 5; %> -

圆的半径为:<%=r%>cm

+ + + + + + -- Gitee From 9095416f7339ddcd8d5ac3d9b3ad7167228fea52 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Wed, 5 Jun 2024 21:06:42 +0800 Subject: [PATCH 5/8] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle.jsp" | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" index fbb3c1a..3d09374 100644 --- "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" @@ -9,7 +9,10 @@ <%! // 计算圆的面积 public double getCircleArea(double r){ - return 3.14 * r * r; + if(r<=0){ + return "数据不合法,不参与计算" + }else{ + return "圆的面积为:" + 3.14 * r * r; } %> <% @@ -19,6 +22,6 @@ %>

圆的半径为:<%=r%>cm

-

圆的面积为: <%=getCircleArea(rs)%>

+

<%=getCircleArea(rs)%>

\ No newline at end of file -- Gitee From 02fe20321fc044ab1252fc7389cc0614ec070e93 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Wed, 5 Jun 2024 21:46:06 +0800 Subject: [PATCH 6/8] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle.jsp" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" index 3d09374..785c865 100644 --- "a/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" +++ "b/work/com/java/minxi/java_20240605/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/circle.jsp" @@ -10,7 +10,7 @@ // 计算圆的面积 public double getCircleArea(double r){ if(r<=0){ - return "数据不合法,不参与计算" + return "数据不合法,不参与计算"; }else{ return "圆的面积为:" + 3.14 * r * r; } -- Gitee From f12f95c55e4e7ec734298c5cb7afcef9bd080747 Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Fri, 7 Jun 2024 11:29:04 +0800 Subject: [PATCH 7/8] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.jsp" | 125 ++++++++++++++++++ .../index1.jsp" | 72 ++++++++++ 2 files changed, 197 insertions(+) create mode 100644 "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" create mode 100644 "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" new file mode 100644 index 0000000..b337eec --- /dev/null +++ "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" @@ -0,0 +1,125 @@ + <%@ page import="java.sql.*" %> + <%@ page import="java.util.List" %> + <%@ page import="java.util.ArrayList" %> + <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + <%! + public class Userinfo { + private int id; + private String userName; + private String userPhone; + + public Userinfo(int id, String userName, String userPhone) { + this.id = id; + this.userName = userName; + this.userPhone = userPhone; + } + + public Userinfo() { + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserPhone() { + return userPhone; + } + + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + @Override + public String toString() { + return "Userinfo{" + + "id=" + id + + ", userName='" + userName + '\'' + + ", userPhone='" + userPhone + '\'' + + '}'; + } + } + + + public List JDBC() throws Exception{ + List userinfos = new ArrayList<>(); + Class.forName("com.mysql.cj.jdbc.Driver"); + String url = "jdbc:mysql://localhost:3306/student?serverTimezone=Asia/Shanghai"; + String username = "root"; + String password = "123456"; + + //建立连接 + Connection conn = DriverManager.getConnection(url, username, password); + + //编写sql语句 + String sql = "select id,user_name,user_phone from user_info;"; + + //创建对象执行sql + Statement stmt = conn.createStatement(); + ResultSet resultSet = stmt.executeQuery(sql); + + while (resultSet.next()){ + int id = resultSet.getInt("id"); + String uname =resultSet.getString("user_name"); + String phoneNum = resultSet.getString("user_phone"); + + Userinfo user = new Userinfo(); + user.setId(id); + user.setUserName(uname); + user.setUserPhone(phoneNum); + + userinfos.add(user); + } + resultSet.close(); + stmt.close(); + conn.close(); + + return userinfos; + } + %> + + + [
+ <% + List userinfos = JDBC(); + for (int i = 0; i < userinfos.size(); i++) { + if (i==userinfos.size()-1){ + out.print(userinfos.get(i).toString()); + }else{ + out.print(userinfos.get(i).toString() + ",
"); + } + } + %> +
]
+ + + + <% + request.setAttribute("userinfos",userinfos); + %> + + + + + + + + + \ No newline at end of file diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" new file mode 100644 index 0000000..175be0e --- /dev/null +++ "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" @@ -0,0 +1,72 @@ + +<%@ page import="java.util.List" %> + +<%@ page language="java" contentType="text/html charset=UTF-8" pageEncoding="UTF-8"%> + + + + + + +<%! + public class Userinfo { + private int id; + private String userName; + private String userPhone; + + public Userinfo(int id, String userName, String userPhone) { + this.id = id; + this.userName = userName; + this.userPhone = userPhone; + } + + public Userinfo() { + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserPhone() { + return userPhone; + } + + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + @Override + public String toString() { + return "Userinfo{" + + "id=" + id + + ", userName='" + userName + '\'' + + ", userPhone='" + userPhone + '\'' + + '}'; + } + } +%> +
+<% + List userinfos = (List)request.getAttribute("userinfos"); + out.println(userinfos); +%> +
+<% + out.println(request.getParameter("userinfos")); +%> + + + + \ No newline at end of file -- Gitee From 977f9235e9acff14a180ebba637862d3722a2b0b Mon Sep 17 00:00:00 2001 From: hong0322 <340177627@qq.com> Date: Sun, 16 Jun 2024 16:14:42 +0800 Subject: [PATCH 8/8] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=BB=A5=E5=8F=8A=E8=A1=A5=E4=BA=A4Login?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work1/index.jsp" | 0 .../work1/index1.jsp" | 0 .../work2/index1.jsp" | 20 +++++++ .../work2/index2.jsp" | 57 +++++++++++++++++++ 4 files changed, 77 insertions(+) rename "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" => "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index.jsp" (100%) rename "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" => "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index1.jsp" (100%) create mode 100644 "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index1.jsp" create mode 100644 "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index2.jsp" diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index.jsp" similarity index 100% rename from "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index.jsp" rename to "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index.jsp" diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index1.jsp" similarity index 100% rename from "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/index1.jsp" rename to "work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work1/index1.jsp" diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index1.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index1.jsp" new file mode 100644 index 0000000..497afbd --- /dev/null +++ "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index1.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 18156 + Date: 2024/6/16 + Time: 12:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +
+
+
+ +
+ + diff --git "a/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index2.jsp" "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index2.jsp" new file mode 100644 index 0000000..5875002 --- /dev/null +++ "b/work/com/java/minxi/java_20240606/java_2302_\345\210\230\345\256\266\351\270\277_2344310227/work2/index2.jsp" @@ -0,0 +1,57 @@ +<%@ page import="java.sql.*" %><%-- + Created by IntelliJ IDEA. + User: 18156 + Date: 2024/6/16 + Time: 12:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<%! + public static int loginContain(String userName,String passWord) throws ClassNotFoundException, SQLException { + //1.注册驱动 + Class.forName("com.mysql.cj.jdbc.Driver"); + + //2.获取连接 + String url = "jdbc:mysql://localhost:3306/student?serverTimezone=Asia/Shanghai"; + String username = "root"; + String password = "123456"; + Connection conn = DriverManager.getConnection(url, username, password); + + //3.编写sql语句 + String sql = "select id from user_info where user_name = ? and user_pwd = ?"; + + //4.获取执行对象 + PreparedStatement preparedStatement = conn.prepareStatement(sql); + preparedStatement.setString(1,userName); + preparedStatement.setString(2,passWord); + + ResultSet resultSet = preparedStatement.executeQuery(); + + int result = 0; + while (resultSet.next()){ + result = resultSet.getInt(1); + } + + resultSet.close(); + preparedStatement.close(); + conn.close(); + + return result; + } +%> + +<% + //乱码处理 + request.setCharacterEncoding("UTF-8"); + int login = loginContain(request.getParameter("userName"),request.getParameter("passWord")); + if (login>0){ + out.println(request.getParameter("userName")+",登录成功"); + } +%> + + -- Gitee