会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132360个问题
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解 497楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解(旧) 498楼

webdemo.zip

老师,按照要求写完之后,输入正确密码也显示错误。

JAVA 全系列/第五阶段:JavaWeb开发/Web实战案例 499楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解(旧) 500楼

image.png

JAVA 全系列/第五阶段:JavaWeb开发/Ajax技术详解(旧) 501楼

老师我点击查询后跳转一个空白页面没有任何结果显示,数据库字段是对应的

viewUser.jsp页面代码
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/2/13
  Time: 18:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />

</head>


<body>

<div class="place">
    <span>位置:</span>
    <ul class="placeul">
        <li><a href="#">用户管理</a></li>
        <li><a href="#">查询用户</a></li>
        <li><a href="#">查询结果</a></li>
    </ul>
</div>

<div class="rightinfo">


    <div class="formtitle1"><span>用户列表</span></div>

    <table class="tablelist" >
        <thead>
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>用户性别</th>
            <th>手机号</th>
            <th>QQ号</th>
            <th>操作</th>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${list}" var="user" varStatus="status">
        <tr>
            <td>${status.count}</td>
            <td>${user.username}</td>
            <td>
                <c:choose>
                    <c:when test="${user.usersex == 1}">
                        男
                    </c:when>
                    <c:otherwise>
                        女
                    </c:otherwise>
                </c:choose>
            </td>
            <td>${user.phonenumber}</td>
            <td>${user.qqnumber}</td>
            <td><a href="userUpdate.html" class="tablelink">修改</a> &nbsp;&nbsp;&nbsp;&nbsp;  <a href="#" class="tablelink click"> 删除</a></td>
        </tr>
        </c:forEach>
        </tbody>
    </table>



    <div class="tip">
        <div class="tiptop"><span>提示信息</span><a></a></div>

        <div class="tipinfo">
            <span><img src="images/ticon.png" /></span>
            <div class="tipright">
                <p>是否确认对信息的修改 ?</p>
                <cite>如果是请点击确定按钮 ,否则请点取消。</cite>
            </div>
        </div>

        <div class="tipbtn">
            <input name="" type="button"  class="sure" value="确定" />&nbsp;
            <input name="" type="button"  class="cancel" value="取消" />
        </div>

    </div>
</div>
</body>
</html>

image.png

JAVA 全系列/第五阶段:JavaWeb开发/Web实战案例 502楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解 503楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解 504楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解 505楼
JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解 506楼
JAVA 全系列/第五阶段:JavaWeb开发/Ajax技术详解(旧) 507楼

image.png

servletdemo.rar

老师,包给你了,帮我看一下

JAVA 全系列/第五阶段:JavaWeb开发/Servlet技术详解(旧) 510楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637